plone

while creating new product i got error “No egg-info directory found ” on plone4.3

元气小坏坏 提交于 2019-12-07 16:29:21
问题 oomsys@oomsysmob-7:~/brundel/src$ ../bin/zopeskel plone_basic bdr.theme plone_basic: A project for Plone products This creates a package for a basic Plone add-on project, with a single namespace (like Products.PloneFormGen). To create a package with a nested namespace use the plone_nested_addon template. If you are trying to create a Plone *site* you want to use one of the installers from plone.org or the ploneX_buildout (where x is the major version of Plone you wish to use) To create a

Plone: pypi specific download issue behind a proxy server - can't install eggs

冷暖自知 提交于 2019-12-07 15:30:50
问题 Have a weird problem here. I am in a network that uses an authenticated proxy to connect to the outside world. I do not control this proxy server. This fact has in the past tripped me up with use of wget, curl, etc. (this is on Mac OSX 10.8). So, I set the environment variables: HTTP_PROXY=proxyserveraddress:3128 FTP_PROXY=proxyserveraddress:3128 RSYNC_PROXY=proxyserveraddress:3128 This when added to the bash rc (is it profile?) file, has made the network connections transparent to the shell.

local-name() support in Collective.xdv

China☆狼群 提交于 2019-12-07 11:54:05
问题 I have a Plone 3.5 site and I am trying to embedded Simple Social's FB Like action for a content in a collective.xdv theme. The FB Like function is embedded in an XML tag <fb:like></fb:like> I am trying to select its XPATH via //*[local-name()="like"] However, I do not see any output. Is the above supported in collective.xdv? Is there another way to select the fb:like tag in XPATH? 回答1: The libxml2 HTMLParser used by lxml and thus xdv/diazo strips namespace prefixes, so you should be able to

Preventing users to upload BMP, TIFF etc. images to ImageField in Plone

≯℡__Kan透↙ 提交于 2019-12-07 10:15:35
问题 The users do it because they can. However, image auto-resize etc. breaks down. This make me a sad boy. How to limit image uploads to GIF, PNG and JPEG sitewide? For Archetypes For Dexterity 回答1: i ran into similar problems these days and worked around them like that: add a custom widget that adds an accept attribute to the file input set field.swallowResizeExceptions = True so users at least don't get a site-error when uploading an unsopported image type state mimetypes that work in

Can you define an entry point in your Plone product to run a script as if it was called by bin/instance run

不羁的心 提交于 2019-12-07 08:39:16
问题 I have a batch job that I need to run occasionally against my Plone instance. It needs access to the code in my Plone product and other Plone code and to query the catalog. I've included the script in my Plone product and currently run it via bin/instance run <path to script in eggs directory> Obviously if a new version of my product comes along I need to change the path to point to the new version of the egg. What I'd like to do is define any entry point for the script in my product's setup

Convert LinguaPlone sub-language back to language for all content?

北慕城南 提交于 2019-12-07 07:51:27
问题 I would like to convert all my content from the sub-language en-ca back to en. What is the API for this? 回答1: Simply call setLanguage on your content item. A quick-n-dirty script to accomplish this would be something along the lines of: cat = context.portal_catalog for brain in cat.unrestrictedSearchResults(Language='en-ca'): content = brain.getObject() content.setLanguage('en') content.reindexObject(idxs=['Language']) You'll need to reindex your content after changing the language setting,

Plone and Asp.Net Integration

浪子不回头ぞ 提交于 2019-12-07 06:19:47
问题 How to: Make an Asp.Net application to recognize a plone authenticated user (his/her id, roles and any other available data) and vice-versa? Show plone contents inside my asp.net application or show some application-specific data inside plone? Insert plone contents from inside an asp.net application? 回答1: There are a couple of high level approaches: Security: Put a web server in front of both Plone and the ASP.net application and use the auth_tkt cookie format. Apache and nginx support this,

Use Plone's authentication mechanism to login to other sites

两盒软妹~` 提交于 2019-12-07 05:23:40
问题 I am using Plone and Sugar CRM. I want to allow users to only have a single username and password across both systems. When they change their password in Plone they should not have to change it in Sugar CRM. Is there a simple way to do this? 回答1: Configure both to authenticate against an LDAP server. 回答2: If you want single sign on, you can also look at Plone 4's mod_auth_tkt support. Basically, Plone will set a cookie that is compatible with the auth_tkt standard. Other systems (such as

How to customize folder_contents on Plone 5?

好久不见. 提交于 2019-12-07 05:13:32
问题 I'm on Plone 5 and I want to modify the number of columns that are shown by default on /folder_contents . If I recall correctly, the whole table is a pattern that gets initialized with quite a huge JSON data-xxx parameter on the corresponding tag. So, should I dig into the JSON or rather put my attention on the JS pattern? Is there any documentation on how to customize it anywhere? A quick google search didn't show up anything relevant to me :-/ 来源: https://stackoverflow.com/questions

An error when trying to change Image workflow

半腔热情 提交于 2019-12-07 02:52:32
In short, when I go into Site Setup -> Types and try and change the workflow for Images from "No Workflow" to any other workflow, I get the following error: Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module plone.app.controlpanel.types, line 165, in __call__ Module zope.event, line 31, in notify Module zope.component.event, line 24, in dispatch Module zope.component._api, line 136, in subscribers Module zope.component.registry, line 321, in subscribers Module zope