Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
63320b86
Commit
63320b86
authored
Mar 19, 2022
by
Arnaud Fontaine
Committed by
Jérome Perrin
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zope4: registerHelp*() removed in favor of Sphinx documentation.
parent
d74ce3d2
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
58 deletions
+0
-58
product/ERP5Form/__init__.py
product/ERP5Form/__init__.py
+0
-2
product/ERP5Type/Utils.py
product/ERP5Type/Utils.py
+0
-19
product/ERP5Type/patches/noZopeHelp.py
product/ERP5Type/patches/noZopeHelp.py
+0
-25
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+0
-1
product/Formulator/__init__.py
product/Formulator/__init__.py
+0
-2
product/HBTreeFolder2/__init__.py
product/HBTreeFolder2/__init__.py
+0
-3
product/Localizer/__init__.py
product/Localizer/__init__.py
+0
-3
product/ZSQLCatalog/__init__.py
product/ZSQLCatalog/__init__.py
+0
-3
No files found.
product/ERP5Form/__init__.py
View file @
63320b86
...
...
@@ -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
)
...
...
product/ERP5Type/Utils.py
View file @
63320b86
...
...
@@ -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__
)
...
...
product/ERP5Type/patches/noZopeHelp.py
deleted
100644 → 0
View file @
d74ce3d2
##############################################################################
#
# 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
product/ERP5Type/tests/runUnitTest.py
View file @
63320b86
...
...
@@ -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
...
...
product/Formulator/__init__.py
View file @
63320b86
...
...
@@ -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
)
...
...
product/HBTreeFolder2/__init__.py
View file @
63320b86
...
...
@@ -24,9 +24,6 @@ def initialize(context):
icon
=
'btreefolder2.gif'
,
)
#context.registerHelp()
#context.registerHelpTitle('Zope Help')
try
:
from
Products.CMFCore
import
utils
except
ImportError
:
...
...
product/Localizer/__init__.py
View file @
63320b86
...
...
@@ -66,6 +66,3 @@ def initialize(context):
constructors
=
(
MessageCatalog
.
manage_addMessageCatalogForm
,
MessageCatalog
.
manage_addMessageCatalog
),
icon
=
'img/message_catalog.gif'
)
context
.
registerHelp
()
product/ZSQLCatalog/__init__.py
View file @
63320b86
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment