Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
09bb46b6
Commit
09bb46b6
authored
Jan 13, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused help registration code.
parent
91bb88b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lib/python/App/ProductContext.py
lib/python/App/ProductContext.py
+0
-20
No files found.
lib/python/App/ProductContext.py
View file @
09bb46b6
...
@@ -104,7 +104,6 @@ class ProductContext:
...
@@ -104,7 +104,6 @@ class ProductContext:
def
registerClass
(
self
,
instance_class
=
None
,
meta_type
=
''
,
def
registerClass
(
self
,
instance_class
=
None
,
meta_type
=
''
,
permission
=
None
,
constructors
=
(),
permission
=
None
,
constructors
=
(),
icon
=
None
,
permissions
=
None
,
legacy
=
(),
icon
=
None
,
permissions
=
None
,
legacy
=
(),
constructor_help
=
None
,
):
):
"""Register a constructor
"""Register a constructor
...
@@ -205,7 +204,6 @@ class ProductContext:
...
@@ -205,7 +204,6 @@ class ProductContext:
'action'
:
(
'manage_addProduct/%s/%s'
%
(
pid
,
name
)),
'action'
:
(
'manage_addProduct/%s/%s'
%
(
pid
,
name
)),
'product'
:
pid
,
'product'
:
pid
,
'permission'
:
permission
,
'permission'
:
permission
,
'help'
:
constructor_help
},)
},)
m
[
name
]
=
initial
m
[
name
]
=
initial
...
@@ -269,24 +267,6 @@ class ProductContext:
...
@@ -269,24 +267,6 @@ class ProductContext:
"""
"""
self
.
__prod
.
__of__
(
self
.
__app
.
Control_Panel
.
Products
).
Help
.
_setObject
(
id
,
topic
)
self
.
__prod
.
__of__
(
self
.
__app
.
Control_Panel
.
Products
).
Help
.
_setObject
(
id
,
topic
)
def
registerHelpViews
(
self
,
klass
):
"""
Associates a class's views with help topics.
This relies on the manage_options structure of
the class.
Note: right now this just sets the permissions on
the help topics.
"""
# this needs to be better thought out.
#
for
option
in
klass
.
manage_options
:
if
option
.
has_key
(
'help'
):
prod_id
,
topic_id
=
option
[
'help'
]
prod
=
getattr
(
self
.
__app
.
Control_Panel
.
Products
,
prod_id
)
topic
=
getattr
(
pdoc
.
Help
,
topic_id
)
perms
=
topic
.
permissions
+
[
permission
]
topic
.
_setPropValue
(
'permissions'
,
perms
)
def
registerHelp
(
self
,
directory
=
'help'
,
clear
=
1
):
def
registerHelp
(
self
,
directory
=
'help'
,
clear
=
1
):
"""
"""
...
...
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