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
acb3d074
Commit
acb3d074
authored
Dec 28, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added helpLink to HelpSys; lighter weight than the form approach
parent
e4cc2814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+13
-0
No files found.
lib/python/HelpSys/HelpSys.py
View file @
acb3d074
...
...
@@ -163,6 +163,19 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
helpURL
=
HTMLFile
(
'helpURL'
,
globals
())
def
helpLink
(
self
,
product
=
'OFSP'
,
topic
=
'ObjectManager_Contents.stx'
):
# Generate an <a href...> tag linking to a help topic. This
# is a little lighter weight than the help button approach.
basepath
=
self
.
REQUEST
[
'BASEPATH1'
]
help_url
=
'%s/Control_Panel/Products/%s/Help/%s'
%
(
basepath
,
product
,
topic
)
help_url
=
'%s?help_url=%s'
%
(
self
.
absolute_url
(),
help_url
)
html
=
'<a href="" onClick="return window.parent.openHelpWindow('
\
'
\
'
%s
\
'
);">Help!</a>'
%
(
help_url
)
return
html
def
tpValues
(
self
):
"""
...
...
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