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
50b8d21f
Commit
50b8d21f
authored
Aug 01, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed help sys headers and footers, tutorial topic order.
parent
bbe18532
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
14 deletions
+22
-14
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+2
-0
lib/python/HelpSys/menu.dtml
lib/python/HelpSys/menu.dtml
+3
-2
lib/python/HelpSys/results.dtml
lib/python/HelpSys/results.dtml
+4
-3
lib/python/HelpSys/search.dtml
lib/python/HelpSys/search.dtml
+2
-2
lib/python/Products/ZopeTutorial/__init__.py
lib/python/Products/ZopeTutorial/__init__.py
+3
-4
lib/python/Products/ZopeTutorial/tutorialNav.dtml
lib/python/Products/ZopeTutorial/tutorialNav.dtml
+7
-2
lib/python/Products/ZopeTutorial/version.txt
lib/python/Products/ZopeTutorial/version.txt
+1
-1
No files found.
lib/python/HelpSys/HelpSys.py
View file @
50b8d21f
...
...
@@ -149,6 +149,8 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
search
=
HTMLFile
(
'search'
,
globals
())
results
=
HTMLFile
(
'results'
,
globals
())
main
=
HTML
(
"""<html></html>"""
)
standard_html_header
=
HTMLFile
(
'menu_header'
,
globals
())
standard_html_footer
=
HTMLFile
(
'menu_footer'
,
globals
())
button
=
HTMLFile
(
'button'
,
globals
())
...
...
lib/python/HelpSys/menu.dtml
View file @
50b8d21f
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('MANAGE_TABS_NO_BANNER',1)">
<dtml-var manage_tabs>
<h2>Contents</h2>
<dtml-tree>
<dtml-if "meta_type =='Help Topic'">
...
...
@@ -11,4 +10,6 @@
</dtml-if>
</dtml-tree>
<dtml-var standard_html_footer>
\ No newline at end of file
<dtml-var standard_html_footer>
lib/python/HelpSys/results.dtml
View file @
50b8d21f
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('MANAGE_TABS_NO_BANNER',1)">
<dtml-call "REQUEST.set('management_view', 'Search')">
<dtml-var manage_tabs>
<h2>Search Results</h2>
<p>Help topics matching <b><dtml-var SearchableText></b>:</p>
<p>
<dtml-in "searchResults(REQUEST)">
<a href="<dtml-var SCRIPT_NAME><dtml-var url>" target="help_main"><dtml-var title_or_id></a><br>
<dtml-else>
<em>No
help topics were found matching <b><dtml-var SearchableText></b>
.</em>
<em>No
matches
.</em>
</dtml-in>
</p>
<dtml-var standard_html_footer>
\ No newline at end of file
<dtml-var standard_html_footer>
lib/python/HelpSys/search.dtml
View file @
50b8d21f
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('MANAGE_TABS_NO_BANNER',1)">
<dtml-var manage_tabs>
<h2>Search</h2>
<p>
<form action="results" method="GET">
Search terms
...
...
@@ -9,4 +9,4 @@ Search terms
<input type="submit" value=" Search ">
</form>
</p>
<dtml-var standard_html_footer>
\ No newline at end of file
<dtml-var standard_html_footer>
lib/python/Products/ZopeTutorial/__init__.py
View file @
50b8d21f
...
...
@@ -122,7 +122,8 @@ def initialize(context):
# create glossary
text
=
open
(
glossary_path
).
read
()
text
=
term_pat
.
sub
(
defineTerm
,
text
)
glossary
=
TutorialTopic
.
TutorialTopic
(
'glossary'
,
'Zope Tutorial Glossary'
,
text
)
glossary
=
TutorialTopic
.
TutorialTopic
(
'tutorialGlossary'
,
'Zope Tutorial Glossary'
,
text
)
context
.
registerHelpTopic
(
'tutorialGlossary'
,
glossary
)
# create lessons
f
=
open
(
lesson_path
)
...
...
@@ -147,8 +148,6 @@ def initialize(context):
break
f
.
close
()
# register glossary last
context
.
registerHelpTopic
(
'glossary'
,
glossary
)
# Glossary functions
...
...
@@ -163,7 +162,7 @@ def glossaryTerm(match):
"""
name=match.group(1)
if name in terms:
return """<a href="../
g
lossary#%s">%s</a>""" % \
return """<a href="../
tutorialG
lossary#%s">%s</a>""" % \
(quote_plus(name), html_quote(name))
return """[%s]""" % name
...
...
lib/python/Products/ZopeTutorial/tutorialNav.dtml
View file @
50b8d21f
<dtml-unless "id=='tutorialGlossary'">
<dtml-call "REQUEST.set('ids', aq_parent.objectIds())">
<dtml-call "ids.remove('
g
lossary')">
<dtml-call "ids.remove('
tutorialG
lossary')">
<dtml-call "REQUEST.set('i', ids.index(id))">
<table width="100%" border="0" padding="0" spacing="0">
...
...
@@ -22,4 +23,8 @@
</dtml-if>
</dtml-unless>
</td></tr></table>
\ No newline at end of file
</td></tr></table>
</dtml-unless>
lib/python/Products/ZopeTutorial/version.txt
View file @
50b8d21f
Zope Tutorial 1.0a5
\ No newline at end of file
Zope Tutorial 1.0
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