plone

Getting rid of Plone4Artists Calendar - migration from Plone 3.3.5 to Plone 4.0.7

我的梦境 提交于 2019-12-25 18:14:29
问题 I am trying to remove P4Artists Calendar from a Plone 3.3.5 site, to upgrade it to Plone 4.0.7. I ran a script to remove all interfaces from all objects, specifically: 'p4a.subtyper.interfaces.ISubtyped', 'p4a.calendar.interfaces.ICalendarEnhanced', 'p4a.calendar.interfaces.IPossibleCalendar', 'p4a.calendar.interfaces.ICalendarConfig', 'p4a.calendar.interfaces.IEventProvider', 'p4a.calendar.interfaces.IEvent', 'p4a.calendar.interfaces.IBasicCalendarSupport', 'p4a.calendar.interfaces

MigrationError during plone upgrading from 4.3.8 to 5.0.3

怎甘沉沦 提交于 2019-12-25 16:05:01
问题 OS: debian 8.3 I upgraded partially from 4.3.8 to 5.0.3. I get stuck in migration error to Dexterity. The process I did before upgrade in 4.3.8: Disable all add-ons Add a sitecustomize.py in site-package director: import sys sys.setdefaultencoding('utf8') update and re-index all catalog in keti/portal_catalog/manage_main delete 'checkout_workflow_policy' in keti/portal_properties/site_properties/manage_propertiesForm delete all objects in /keti/reference_catalog/manage_catalogView The process

MigrationError during plone upgrading from 4.3.8 to 5.0.3

孤人 提交于 2019-12-25 16:04:53
问题 OS: debian 8.3 I upgraded partially from 4.3.8 to 5.0.3. I get stuck in migration error to Dexterity. The process I did before upgrade in 4.3.8: Disable all add-ons Add a sitecustomize.py in site-package director: import sys sys.setdefaultencoding('utf8') update and re-index all catalog in keti/portal_catalog/manage_main delete 'checkout_workflow_policy' in keti/portal_properties/site_properties/manage_propertiesForm delete all objects in /keti/reference_catalog/manage_catalogView The process

How to customize the popup.pt template from archetypes.referencebrowserwidget?

為{幸葍}努か 提交于 2019-12-25 05:22:39
问题 How can i customize the popup.pt template from archetypes.referencebrowserwidget in my own package? Apparently customizing it with z3c.jbot doesn't seem to work. Thanks ! My z3c.jbot setup (that works just fine for other skin and browser templates): In the configure.zcml of my theme package: <include package="z3c.jbot" file="meta.zcml" /> <browser:jbot directory="jbot_templates" layer=".browser.interfaces.IThemeSpecific" /> Filename of the template: archetypes.referencebrowserwidget.browser

How to remove an inherited field from a new content type

瘦欲@ 提交于 2019-12-25 01:49:35
问题 I'm working with ArgoUML/AGX/Plone 4.1 to generate a subclass using "atevent" as the stereotype. How do I remove the inherited "Event body text" field? 回答1: you can set the widget invisible for editing and for viewing. YourSchema['FieldName'].widget.visible = {'view': 'hidden', 'edit':'hidden' } 回答2: If the field is required in the original schema, you'll also need YourSchema['FieldName'].required = False 来源: https://stackoverflow.com/questions/7459045/how-to-remove-an-inherited-field-from-a

Can't disable permissions of parent folder in Plone

血红的双手。 提交于 2019-12-25 00:35:42
问题 In the Sharing-Setup of my folders and contents, I can't remove the permissions of the parent folder. When I untick the box and press save, it seems to load something but when I reload the sharing page, the box is ticked again. 回答1: I solved the problem by updating to Plone version 4.3.2. There was an error in file plone/app/workflow/browser/sharing.py as described on this GitHub page. Thanks for your help guys! 来源: https://stackoverflow.com/questions/20805351/cant-disable-permissions-of

Hide default view from getFolderContents results with TALES on Plone 4

二次信任 提交于 2019-12-25 00:20:46
问题 I am creating a secondary navigation bar on a Plone 4 site which looks at the contents of sub folders. My site structure looks like the following: Plone Site | |--Folder1 |--PageA |--PageB |--Folder2 |--PageC |--PageD My TALES is as follows (I appreciate that this is probably not the most elegant code): <tal:subsections tal:define="isDocument python:getattr(context,'portal_type','') == 'Document'; isFolder python:getattr(context,'portal_type','') == 'Folder'; subitemsDocument python:context

Importing ping module in RestrictedPython script in Plone

霸气de小男生 提交于 2019-12-24 20:12:17
问题 I would like to check internet connexion from my plone site. I tried a ping in a python script ## Script (Python) "pwreset_action.cpy" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##title=Reset a user's password ##parameters=randomstring, userid=None, password=None, password2=None from Products.CMFCore.utils import getToolByName from Products.PasswordResetTool.PasswordResetTool import InvalidRequestError,

Long running Plone operation with AJAX progress bar

大憨熊 提交于 2019-12-24 18:06:16
问题 I'd like to run tasks in Plone which take long time to complete (minutes). For the duration of the task I could present a progress bar using AJAX. Are there any ready Plone libraries / add-ons which allow you to serialize task to pieces and give AJAX status report automatically, without need to manually split and maintain the long running task state on the server? E.g. You start the task with start() method Task gives status with getStatus() or similar Framework will handle making the task

Page template Macro expansion failed

人走茶凉 提交于 2019-12-24 17:04:03
问题 I am trying to make a page template for my dexterity product using summary_view as a starting point. However customising summary view or coping the body of summary view into my type's template yeilds: Macro expansion failed <type 'exceptions.KeyError'>: 'standard_view' Is there a problem with this path, or do I have to do something else to make this template available: <metal:block use-macro="context/standard_view/macros/content-core"> 回答1: You have to add a macros method to your BrowserView.