Commit 2e1043a2 authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Jérome Perrin

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

parent 8c396b90
......@@ -172,8 +172,6 @@ def initialize( context ):
FieldRegistry.registerField(HoneypotField.HoneypotField,
'www/StringField.gif')
# register help for the product
context.registerHelp()
# register field help for all fields
FieldRegistry.registerFieldHelp(context)
......
......@@ -1273,25 +1273,6 @@ def initializeProduct( context,
fti=contentFactoryTypeInformations,
).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
for c in object_classes:
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):
# change current directory to the test home, to create zLOG.log in this dir.
os.chdir(tests_home)
from Products.ERP5Type.patches import noZopeHelp
from OFS.Application import AppInitializer
AppInitializer.install_session_data_manager = lambda self: None
......
......@@ -68,8 +68,6 @@ def initialize(context):
FieldRegistry.registerField(StandardFields.RangedIntegerField,
'www/RangedIntegerField.gif')
# register help for the product
context.registerHelp()
# register field help for all fields
FieldRegistry.registerFieldHelp(context)
......
......@@ -24,9 +24,6 @@ def initialize(context):
icon='btreefolder2.gif',
)
#context.registerHelp()
#context.registerHelpTitle('Zope Help')
try:
from Products.CMFCore import utils
except ImportError:
......
......@@ -66,6 +66,3 @@ def initialize(context):
constructors = (MessageCatalog.manage_addMessageCatalogForm,
MessageCatalog.manage_addMessageCatalog),
icon='img/message_catalog.gif')
context.registerHelp()
......@@ -33,9 +33,6 @@ def initialize(context):
icon='www/ZCatalog.gif',
)
context.registerHelp()
context.registerHelpTitle('Zope Help')
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic(
'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