Commit bf8bbb6e authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4: registerHelp*() removed in favor of Sphinx documentation.

parent ac9a3d51
...@@ -172,8 +172,6 @@ def initialize( context ): ...@@ -172,8 +172,6 @@ def initialize( context ):
FieldRegistry.registerField(HoneypotField.HoneypotField, FieldRegistry.registerField(HoneypotField.HoneypotField,
'www/StringField.gif') 'www/StringField.gif')
# register help for the product
context.registerHelp()
# register field help for all fields # register field help for all fields
FieldRegistry.registerFieldHelp(context) FieldRegistry.registerFieldHelp(context)
......
...@@ -1273,25 +1273,6 @@ def initializeProduct( context, ...@@ -1273,25 +1273,6 @@ def initializeProduct( context,
fti=contentFactoryTypeInformations, fti=contentFactoryTypeInformations,
).initialize( context ) ).initialize( context )
# Register Help and API Reference. This trick to make registerHelp works
# with 2 directories was taken originally from CMFCore, but it required at
# least a (possibly) help directory...
help = context.getProductHelp()
lastRegistered = help.lastRegistered
help_list = []
for d in 'help', 'interfaces':
if os.path.exists(os.path.join(this_module.__path__[0], d)):
context.registerHelp(directory=d, clear=1)
help_list.append(d)
if help.lastRegistered != lastRegistered and len(help_list) > 1:
for i, d in enumerate(help_list):
help.lastRegistered = None
context.registerHelp(directory=d, clear=not i)
context.registerHelpTitle('%s Help' % product_name)
# Register Objets # Register Objets
for c in object_classes: for c in object_classes:
registerDocumentClass(c.__module__, c.__name__) registerDocumentClass(c.__module__, c.__name__)
......
##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# Copyright (c) 2013 Nexedi SARL and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
# copied & pasted from Testing.ZopeTestCase.ZopeLite
import App.ProductContext
if 1:
# Avoid expensive help registration
def null_register_topic(self,id,topic): pass
App.ProductContext.ProductContext.registerHelpTopic = null_register_topic
def null_register_title(self,title): pass
App.ProductContext.ProductContext.registerHelpTitle = null_register_title
def null_register_help(self,directory='',clear=1,title_re=None): pass
App.ProductContext.ProductContext.registerHelp = null_register_help
...@@ -596,7 +596,6 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None): ...@@ -596,7 +596,6 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
# change current directory to the test home, to create zLOG.log in this dir. # change current directory to the test home, to create zLOG.log in this dir.
os.chdir(tests_home) os.chdir(tests_home)
from Products.ERP5Type.patches import noZopeHelp
from OFS.Application import AppInitializer from OFS.Application import AppInitializer
AppInitializer.install_session_data_manager = lambda self: None AppInitializer.install_session_data_manager = lambda self: None
......
...@@ -68,8 +68,6 @@ def initialize(context): ...@@ -68,8 +68,6 @@ def initialize(context):
FieldRegistry.registerField(StandardFields.RangedIntegerField, FieldRegistry.registerField(StandardFields.RangedIntegerField,
'www/RangedIntegerField.gif') 'www/RangedIntegerField.gif')
# register help for the product
context.registerHelp()
# register field help for all fields # register field help for all fields
FieldRegistry.registerFieldHelp(context) FieldRegistry.registerFieldHelp(context)
......
...@@ -24,9 +24,6 @@ def initialize(context): ...@@ -24,9 +24,6 @@ def initialize(context):
icon='btreefolder2.gif', icon='btreefolder2.gif',
) )
#context.registerHelp()
#context.registerHelpTitle('Zope Help')
try: try:
from Products.CMFCore import utils from Products.CMFCore import utils
except ImportError: except ImportError:
......
...@@ -66,6 +66,3 @@ def initialize(context): ...@@ -66,6 +66,3 @@ def initialize(context):
constructors = (MessageCatalog.manage_addMessageCatalogForm, constructors = (MessageCatalog.manage_addMessageCatalogForm,
MessageCatalog.manage_addMessageCatalog), MessageCatalog.manage_addMessageCatalog),
icon='img/message_catalog.gif') icon='img/message_catalog.gif')
context.registerHelp()
...@@ -33,9 +33,6 @@ def initialize(context): ...@@ -33,9 +33,6 @@ def initialize(context):
icon='www/ZCatalog.gif', icon='www/ZCatalog.gif',
) )
context.registerHelp()
context.registerHelpTitle('Zope Help')
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic( ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic(
'ComplexQuery', 'Query', 'NegatedQuery', 'AndQuery', 'OrQuery', 'ComplexQuery', 'Query', 'NegatedQuery', 'AndQuery', 'OrQuery',
......
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