plone

What is the suggested way to cron-automate ZODB packs for a production Plone instance?

微笑、不失礼 提交于 2019-12-06 17:14:25
问题 Looking at plone.org to find a way to periodically pack my instance's ZODB I could only find http://plone.org/documentation/faq/how-do-i-pack-the-zodb that doesn't talk about automated packs, but just manually initiated ones. I know I can simulate the manual pack with wget or curl, but I'd like to know if that is the best practice in use for production sites. 回答1: If you are using ZEO you can add the following to your Crontab to do this: 0 1 * * 6 <path-to-buildout>/bin/zeopack If you don't

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

浪子不回头ぞ 提交于 2019-12-06 13:41:42
问题 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? 回答1: 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

Master slave widget for PloneFormGen

旧城冷巷雨未停 提交于 2019-12-06 11:45:53
问题 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? 回答1: 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

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

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:20:52
问题 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

Zope.Schema/Plone - How can I set the value of a Datetime field in an updateWidget function?

这一生的挚爱 提交于 2019-12-06 07:38:00
On a plone site I am working on, I have a form that is used to edit records of objects stored mapped to a table in the backend database. In the interface class, one of the fields is a schema.Datetime field. class ICalibration(Interface): """Interface class for calibration records """ ... Last_Calibration = schema.Datetime(title=u"Last Calibration" description=u"date of last calibration", ) ... In my updateWidgets function, in the edit form, I try to set the value of the widget, class EditCalibration(form.Form): grok.name('edit-calibration') grok.require('zope2.View') grok.context(ISiteRoot)

Plone 4.2 - how can I change the logo in a diazo theme?

放肆的年华 提交于 2019-12-06 07:20:23
I have just installed a theme in Plone called beyondskins.responsive. Now I want to change the logo so that it uses the logo for my site and not the default Plone logo. I've spent an hour googling this problem and I have not found a solution. One of the places I looked was here: http://pypi.python.org/pypi/plone.app.theming#modifying-the-theme This site tells me "You can modify a theme by clicking Modify theme underneath a theme in the Themes tab of the Theming control panel." However, I don't know how to find the "Theming control panel" that they are speaking of. When I go to "Site Setup"

Where is the main space used up in Plone file upload?

折月煮酒 提交于 2019-12-06 05:54:34
In plone I have uploaded only 800 GB of data (mainly pdfs), it has occupied already 2 TB of hard disk space. Where exactly is the space being used up? I am using collective.documentviewer with its default settings. and plone 4.3. Are files stored by documentviewer changed to various image sizes ie Thumbnail, large image etc and stored in the blobstorage folder? With collective.documentviewer, space is nearly doubled(or more) for every PDF. In order for collective.documentviewer to do what it does, it converts each document into a series of images which are stored in addition to the original

“Unhandled exception in thread started by Error in sys.excepthook” during relstorage zodb pack

白昼怎懂夜的黑 提交于 2019-12-06 05:16:42
We have a reasonably large Plone instance running on its own mount point. The ZMI interface lists the size of the database as 7101.4M. We run a weekly pack of the database using the Relstorage zodbpack.py script, removing objects older than 7 days. The last two weeks the cron job that runs the pack has output the following: Sun Jun 26 07:00:38 BST 2011 packing cms mount /home/zope/home/parts/zope2/lib/python/zope/configuration/xmlconfig.py:323: DeprecationWarning: zope.app.annotation has moved to zope.annotation. Import of zope.app.annotation will become unsupported in Zope 3.5 __import__

Plone: How to sort folder items

只愿长相守 提交于 2019-12-06 04:44:29
问题 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

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

六眼飞鱼酱① 提交于 2019-12-06 03:47:11
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 project with a name like 'plone.app.myproject' (2 dots, a 'nested namespace'), use the 'plone_app'