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
5564c2f2
Commit
5564c2f2
authored
Jul 03, 2009
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed ProductHelp (reverted small part of revision 94458)
parent
addcb191
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/App/Product.py
src/App/Product.py
+13
-1
No files found.
doc/CHANGES.rst
View file @
5564c2f2
...
...
@@ -19,6 +19,8 @@ Features Added
Bugs Fixed
++++++++++
- App.Product: ProductHelp was broken since Zope 2.12.0a1.
- ObjectManagerNameChooser now also works with BTreeFolder2.
- Correctly handle unauthorized exceptions in the ZPublisherExceptionHook.
...
...
src/App/Product.py
View file @
5564c2f2
...
...
@@ -99,9 +99,19 @@ class Product(Folder, PermissionManager):
_reserved_names
=
(
'Help'
,)
def
__init__
(
self
,
id
,
title
):
from
HelpSys.HelpSys
import
ProductHelp
self
.
id
=
id
self
.
title
=
title
# Workaround for unknown problem with help system and PluginIndexes product
# NEEDS to be fixed for 2.4 ! (ajung)
try
:
self
.
_setObject
(
'Help'
,
ProductHelp
(
'Help'
,
id
))
except
:
pass
security
.
declarePublic
(
'Destination'
)
def
Destination
(
self
):
"Return the destination for factory output"
...
...
@@ -129,7 +139,9 @@ class Product(Folder, PermissionManager):
"""Returns the ProductHelp object associated with the Product.
"""
from
HelpSys.HelpSys
import
ProductHelp
return
ProductHelp
(
'Help'
,
self
.
id
).
__of__
(
self
)
if
not
hasattr
(
self
,
'Help'
):
self
.
_setObject
(
'Help'
,
ProductHelp
(
'Help'
,
self
.
id
))
return
self
.
Help
#
# Product refresh
...
...
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