plone

Master slave widget for PloneFormGen

懵懂的女人 提交于 2019-12-04 17:42:27
Does there exist anything akin "Master Slave Widget" for PloneFormGen? Where the user choices first choice A which would generate the list of choices for choice B (below) to select? This is a far less than ideal answer, but I've done this several times with JavaScript injected into the header with a PFG override. It's only practical for relatively simple decision trees. The basic procedure is to on-load hide all the subsidiary controls, then reveal them as click events indicate a controlling choice. Grouping subsidiary controls into fieldsets is also handy: then you may show and hide controls

How can I add a Dexterity content type as the default view?

半世苍凉 提交于 2019-12-04 16:09:22
I'm trying to set a folder default view as a Dexterity content type that I created. But I see that Dexterity content types aren't in the list of possible default content views for folders. Why? Is there an option that I must set in the content type? Content items are listed as candidate default pages if: the object is not a container type or the object portal type is listed in the default_page_types of your site_properties property sheet. Find that in the ZMI (site settings -> Zope Management Interface -> portal_properties ). The default_page_types property is a list of portal_type ids; for

Plone's portal_catalog(portal_type=“File”) does not returns all the objects I see in the ZMI portal_catalog page

最后都变了- 提交于 2019-12-04 14:34:42
I'm back to using Plone after a very long time without using it. We have setup an Intranet with Plone 4.0.5. We have upload lots of documents (mostly File) to the intranet. The site was installed using the Plone Unified Installer with a ZEO configuration. Some products (eggs) were added (if you need some part of our buildout.cfg and/or versions.cfg; please ask for it) to our buildout.cfg With both the ZEO server and clients running; I'm doing: $ bin/client1 debug Starting debugger (the name "app" is bound to the top-level Zope object) ... several warnings ... >>> Now, I query the catalog like

Plone: How to sort folder items

这一生的挚爱 提交于 2019-12-04 12:56:47
I have a folder called myfolder , that has some items inside, like: item1 , item2 , item3 , and etc. When I added the portlet Navigation to the left column of the page, and entered on the folder myfolder , it showed me the links on the portlet like this: item1 item2 item3 I want that the Navigation portlet shows me links on this exact sort: item2 item1 item3 I know that I can go on the Content tab of myfolder enter code here , and drag each item to the position that I want. But using this way, if I reinstall all my product on a new Plone Site , I lost my configuration. So I want to have this

Error notification on plone 4

女生的网名这么多〃 提交于 2019-12-04 10:52:58
问题 I just want to have email notification when an error is declared in plone 4. Any ideas of product or any "how-to" ? Thanks 回答1: You can easily configure the built-in email notification for Zope, but we found that adding the mailinglogger package makes the emails a lot more managable. The package adds: customisable and dynamic subject lines for emails sent emails sent with configurable headers for easy filtering flood protection to ensure the number of emails sent is not excessive support for

Extending table columns in collection view in Plone 4

对着背影说爱祢 提交于 2019-12-04 07:27:17
问题 Collections provide an option to select columns to be display within the table view of collection. We are extending most content-types with two fields using archetypes.schemaextender: teaser image and teaser text. Is there a sane way to extend the list of available table columns? Is there a way to display the teaser text and teaser image inside the table view of the collection with out further customization? Is the logic of the table view flexible enough in order to support a schema extension

TinyMCE Toolbar Missing After Plone 4.3 Upgrade

让人想犯罪 __ 提交于 2019-12-04 06:00:47
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? No definitive answers, but a few suggestions. I have 9 plone sites all running the same version of Plone (4.2) and have some where

Is there an easy way in Plone to get email notifications when new users join the portal?

旧时模样 提交于 2019-12-04 01:56:42
问题 I want to get email notifications to the portal email address whenever a new user joins the portal. My guess is that I should code a new product to do that. Does such product already exist (for Plone 4)? I checked content rules, but AFAICT it could work only if I made the users contentish themselves with something like membrane/remember, but for my requirements that would be overkill. 回答1: I don't think such a product already exists. It should be trivial to create a package that adds a

Do as many copies as the number of revisions exist for a file in plone?

a 夏天 提交于 2019-12-04 01:36:25
问题 In plone, how many physical copies of a file (or any content) exist if it is revised say 4 times? I am using plone 4.1 wherein the files and images are stored on the file system. 回答1: Content objects consist of multiple persistent records. For images and files that includes the binary blob file on the file system. When a content object is changed, only the persistent records that are affected by the change are written as part of the transaction. Older records are not cleared at that moment,

Invalidate/prevent memoize with plone.memoize.ram

不羁的心 提交于 2019-12-03 14:27:31
I've and Zope utility with a method that perform network processes. As the result of the is valid for a while, I'm using plone.memoize.ram to cache the result. MyClass(object): @cache(cache_key) def do_auth(self, adapter, data): # performing expensive network process here ...and the cache function: def cache_key(method, utility, data): return time() // 60 * 60)) But I want to prevent the memoization to take place when the do_auth call returns empty results (or raise network errors). Looking at the plone.memoize code it seems I need to raise ram.DontCache() exception, but before doing this I