Commit 191a4f28 authored by Jérome Perrin's avatar Jérome Perrin

When registering an ERP5Type style product, also register Interface directory...

When registering an ERP5Type style product, also register Interface directory for API Documentation in Zope help system



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14586 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3ee5996
...@@ -946,8 +946,19 @@ def initializeProduct( context, ...@@ -946,8 +946,19 @@ def initializeProduct( context,
fti=contentFactoryTypeInformations, fti=contentFactoryTypeInformations,
).initialize( context ) ).initialize( context )
# Register Help # Register Help and API Reference
context.registerHelp(directory='help') # This trick to make registerHelp work with 2 directories is taken from
# CMFCore
help = context.getProductHelp()
lastRegistered = help.lastRegistered
context.registerHelp(directory='help', clear=1)
context.registerHelp(directory='Interface', clear=1)
if help.lastRegistered != lastRegistered:
help.lastRegistered = None
context.registerHelp(directory='help', clear=1)
help.lastRegistered = None
context.registerHelp(directory='Interface', clear=0)
context.registerHelpTitle('%s Help' % product_name) context.registerHelpTitle('%s Help' % product_name)
# Register Objets # Register Objets
......
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