plone

Can not activate discussions on Plone Dexterity types (folderish)

隐身守侯 提交于 2019-12-06 02:16:41
问题 I have been working on a dexterity based plone application. I have created a couple of new types. This is what I did to activate comments on a specific dexterity content type named "activity_report": In Plone Control Panel In the Discussion section I enabled the following: globally enable comments enable anonymous comments In the Types Section I chose the "Activity Report" type from the drop down and enabled the "Allow comments" option. On the file system In the FTI file activityreport.xml:

TinyMCE Toolbar Missing After Plone 4.3 Upgrade

爷,独闯天下 提交于 2019-12-06 01:59:22
问题 I upgrade a Plone site from 4.2 to 4.3. The upgrade steps are basically: running install.sh to have a 4.3 environment copy Data.fs to var/filestorage and custom dexterity package to src running upgrade in ZMI Everything seems fine. But when I add/edit Page items, TinyMCE toolbar is missing for the body field. Only showing a Text Format dropdown. Note: I do see the toolbar trying to render (first 2 icons appear), but fail and disappear. What am I missing? Any hints? 回答1: No definitive answers,

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

那年仲夏 提交于 2019-12-06 01:46:56
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. There is also a system proxy setting that points the same way. Now, I installed Plone and wanted to

Plone - In an AutocompleteFieldWidget, how can I fix a glitch where (none) is still selected despite another selected?

╄→гoц情女王★ 提交于 2019-12-05 20:51:52
I have a form.Form whose interface has a field that is a AutocompleteFieldWidget. (none) is displayed because the field is not required. There is a glitch where (none) will remain selected even if the user hits another radio button. Parent = schema.Choice(title=u'Parent Object', source=ParentSourceVocabSourceBinder(), required=False, default=None) The field is bound to an object class acting as a vocabulary. The object has the required functions. The search function searches for records of a mapped table based on the query from the textbox the user enters information into and the __contains__

Title and description aren't indexed with collective.dexteritytextindexer

断了今生、忘了曾经 提交于 2019-12-05 20:50:27
I have lots of Dexterity content types, some of them are just containers and are left with just the Title and Description (from plone.app.dexterity.behaviors.metadata.IBasic behavior). I can find them by searching the text inside their title or description. But for some complex content types I'm using collective.dexteritytextindexer to index some more fields and it works fine, I can find the text on the fields I marked to be indexed. However the Title and Description are no longer available for searching. I tried something like: class IMyContent(form.Schema): """My content type description """

local-name() support in Collective.xdv

ぃ、小莉子 提交于 2019-12-05 19:36:51
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? The libxml2 HTMLParser used by lxml and thus xdv/diazo strips namespace prefixes, so you should be able to select it with "//like". You will need to add some xslt code to fix up those tags, as they must be rendered

How to override template “folder_full_view_item.pt” only for a Custom Type?

試著忘記壹切 提交于 2019-12-05 19:26:24
This question has evolved in a confusing way. Some of its parts though, and specially some answers, might be useful for someone. Therefore I'll let this question unmodified and I'll try to reformulate the question here . Overriding the template folder_full_view_item.pt with z3c.jbot will override the template for all Content Types. How do I override it only for a single Content Type MyType in a Product with many types? Having the following structure: Folder (layout=folder_full_view) Document (layout=document_view) MyType (layout=mytype_view) The default steps in Plone are: The template folder

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

左心房为你撑大大i 提交于 2019-12-05 16:23:08
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.py and then use the buildout recipe like zc.recipe.egg so that I can just run bin/myscript How do I do

How are portlets rendered / ordered / layed out in Plone?

做~自己de王妃 提交于 2019-12-05 16:01:58
I'm trying to change the global ordering of the portlets in my Plone site. I've searched the Plone source code but I can't find the code that actually iterates through and renders the portlets, for example the 'plone.rightcolumn' and 'plone.leftcolumn' content providers. Where is that code? First check http://developer.plone.org/reference_manuals/old/portlets/rendered.html for technical details (imho this is still up-to-date) The PortletRetriever (plone.portlets) collects and orders all portlet assignments. The PortletManagerRenderer uses the informations of the retriever to render the column

Restrict upload by filetype or mimetype using Dexterity on Plone

痴心易碎 提交于 2019-12-05 15:52:07
I have a custom content type, built with dexterity. In the schema (The schema is listed below), I use ' plone.namedfile.field.NamedFile ' for attachements/uploads. I would like to restrict uploads so that only mp3 files can be attached to my content type. What is the best approach for achieving this? Here is the full schema/model for my content type: <model xmlns="http://namespaces.plone.org/supermodel/schema"> <schema> <field name="date" type="zope.schema.Date"> <description /> <title>Date</title> </field> <field name="speaker" type="zope.schema.TextLine"> <description /> <title>Speaker<