Commit 5564c2f2 authored by 's avatar

- fixed ProductHelp (reverted small part of revision 94458)

parent addcb191
......@@ -19,6 +19,8 @@ Features Added
Bugs Fixed
++++++++++
- App.Product: ProductHelp was broken since Zope 2.12.0a1.
- ObjectManagerNameChooser now also works with BTreeFolder2.
- Correctly handle unauthorized exceptions in the ZPublisherExceptionHook.
......
......@@ -99,9 +99,19 @@ class Product(Folder, PermissionManager):
_reserved_names=('Help',)
def __init__(self, id, title):
from HelpSys.HelpSys import ProductHelp
self.id=id
self.title=title
# Workaround for unknown problem with help system and PluginIndexes product
# NEEDS to be fixed for 2.4 ! (ajung)
try:
self._setObject('Help', ProductHelp('Help', id))
except:
pass
security.declarePublic('Destination')
def Destination(self):
"Return the destination for factory output"
......@@ -129,7 +139,9 @@ class Product(Folder, PermissionManager):
"""Returns the ProductHelp object associated with the Product.
"""
from HelpSys.HelpSys import ProductHelp
return ProductHelp('Help', self.id).__of__(self)
if not hasattr(self, 'Help'):
self._setObject('Help', ProductHelp('Help', self.id))
return self.Help
#
# Product refresh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment