Use RichDocument 3.0.1
Plone 3.3.5 (probably with all Plone 3.x)
If you have added a rule to a page or folder (in my case: modify object) it
can happen that reinstallation of RichDocument or even more supposable a
policy theme including RichDocument (as explained in Martin Aspeli -
Professional Plone Development book) will fail.
(The rule needs not necessarily be activated for the subfolders, but
could be.)
For more details with traceback see below.
Workable Solution (but not confidential solution):
1. Delete rule for all pages and folders (independant if it is or contains a
RichDocument instance).
2. Remove RichDocument from resource:linkable (and mediaobjects if
necessary) in Site Setup -> Visual Editor (Kupu) -> Tab ResourceTypes
3. Reinstall policy theme or only RichDocument
Good luck,
Fritz
DETAILS:
=======
Reinstalling policy theme including RichDocument has following traceback:
------------------------------------------------------------------------------------------------------------------------------
Exception Type AttributeError
Exception Value RichDocument
Traceback (innermost last):
* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module <string>, line 6, in _facade
* Module AccessControl.requestmethod, line 64, in _curried
* Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 648, in
reinstallProducts
* Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 589, in
installProducts
* Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 514, in
installProduct
__traceback_info__: ('optilux.policy',)
* Module Products.ExternalMethod.ExternalMethod, line 231, in __call__
__traceback_info__: ((<PloneSite at /optilux>,), {}, (False,))
* Module
.../Plone/zinstance/src/optilux.policy/ekglorsch/policy/Extensions/Install.py,
line 36, in install
* Module Products.GenericSetup.tool, line 390, in
runAllImportStepsFromProfile
__traceback_info__: profile-ekglorsch.policy:default
* Module Products.GenericSetup.tool, line 1179, in
_runImportStepsFromContext
* Module Products.GenericSetup.tool, line 1090, in _doRunImportStep
__traceback_info__: ekglorsch-various
* Module optilux.policy.setuphandlers, line 34, in importVarious
* Module optilux.policy.setuphandlers, line 11, in renameRichDocument
AttributeError: RichDocument
________________________________________________________________________________
Reinstalling RichDocument has following traceback:
------------------------------------------------------------------------------------------------------------------------------
Exception Type TypeError
Exception Value getTypeInfo() takes exactly 2 arguments (1 given)
Traceback (innermost last):
* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module <string>, line 6, in _facade
* Module AccessControl.requestmethod, line 64, in _curried
* Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 644, in
reinstallProducts
* Module <string>, line 4, in _facade
* Module AccessControl.requestmethod, line 64, in _curried
* Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 626, in
uninstallProducts
* Module Products.CMFQuickInstallerTool.InstalledProduct, line 298, in
uninstall
* Module Products.CMFQuickInstallerTool.InstalledProduct, line 313, in
_cascadeRemove
* Module Products.CMFQuickInstallerTool.utils, line 22, in delObjects
* Module OFS.ObjectManager, line 525, in manage_delObjects
* Module OFS.ObjectManager, line 398, in _delObject
* Module zope.app.container.contained, line 365, in
notifyContainerModified
* Module zope.event, line 23, in notify
* Module zope.component.event, line 26, in dispatch
* Module zope.component._api, line 131, in subscribers
* Module zope.component.registry, line 300, in subscribers
* Module zope.interface.adapter, line 535, in subscribers
* Module plone.app.contentrules.handlers, line 174, in modified
* Module plone.app.contentrules.handlers, line 89, in execute
* Module plone.contentrules.engine.executor, line 27, in __call__
* Module plone.contentrules.rule.rule, line 44, in __call__
* Module plone.app.contentrules.conditions.portaltype, line 68, in
__call__
TypeError: getTypeInfo() takes exactly 2 arguments (1 given)
--
View this message in context:
http://plone.293351.n2.nabble.com/RichDocument-Reinstall-failure-using-Rules-in-a-Site-Solution-tp5083615p5083615.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup