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
8516304d
Commit
8516304d
authored
Jan 12, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed things which use HTMLFile to use DTMLFile.
parent
46fb7401
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+11
-11
lib/python/HelpSys/HelpTopic.py
lib/python/HelpSys/HelpTopic.py
+2
-2
No files found.
lib/python/HelpSys/HelpSys.py
View file @
8516304d
...
...
@@ -86,7 +86,7 @@
import
Acquisition
from
OFS.SimpleItem
import
Item
from
OFS.ObjectManager
import
ObjectManager
from
Globals
import
Persistent
,
HTMLFile
,
HTML
from
Globals
import
Persistent
,
DTMLFile
,
HTMLFile
,
HTML
from
Products.ZCatalog.ZCatalog
import
ZCatalog
from
Products.ZCatalog.Lazy
import
LazyCat
import
Products
...
...
@@ -146,15 +146,15 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
searchResults
=
__call__
index_html
=
H
TMLFile
(
'dtml/frame'
,
globals
())
index_html
=
D
TMLFile
(
'dtml/frame'
,
globals
())
menu
=
HTMLFile
(
'dtml/menu'
,
globals
())
search
=
H
TMLFile
(
'dtml/search'
,
globals
())
results
=
H
TMLFile
(
'dtml/results'
,
globals
())
search
=
D
TMLFile
(
'dtml/search'
,
globals
())
results
=
D
TMLFile
(
'dtml/results'
,
globals
())
main
=
HTML
(
"""<html></html>"""
)
standard_html_header
=
H
TMLFile
(
'dtml/menu_header'
,
globals
())
standard_html_footer
=
H
TMLFile
(
'dtml/menu_footer'
,
globals
())
standard_html_header
=
D
TMLFile
(
'dtml/menu_header'
,
globals
())
standard_html_footer
=
D
TMLFile
(
'dtml/menu_footer'
,
globals
())
button
=
H
TMLFile
(
'dtml/button'
,
globals
())
button
=
D
TMLFile
(
'dtml/button'
,
globals
())
def
HelpButton
(
self
,
topic
,
product
):
"""
...
...
@@ -162,7 +162,7 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
"""
return
self
.
button
(
self
,
self
.
REQUEST
,
product
=
product
,
topic
=
topic
)
helpURL
=
H
TMLFile
(
'dtml/helpURL'
,
globals
())
helpURL
=
D
TMLFile
(
'dtml/helpURL'
,
globals
())
def
helpLink
(
self
,
product
=
'OFSP'
,
topic
=
'ObjectManager_Contents.stx'
):
# Generate an <a href...> tag linking to a help topic. This
...
...
@@ -292,7 +292,7 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
c
.
addColumn
(
'url'
)
c
.
addColumn
(
'id'
)
addTopicForm
=
H
TMLFile
(
'dtml/addTopic'
,
globals
())
addTopicForm
=
D
TMLFile
(
'dtml/addTopic'
,
globals
())
def
addTopic
(
self
,
id
,
title
,
REQUEST
=
None
):
"Add a Help Topic"
...
...
@@ -351,8 +351,8 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
"""
return
apply
(
self
.
catalog
.
__call__
,
args
,
kw
)
standard_html_header
=
H
TMLFile
(
'dtml/topic_header'
,
globals
())
standard_html_footer
=
H
TMLFile
(
'dtml/topic_footer'
,
globals
())
standard_html_header
=
D
TMLFile
(
'dtml/topic_header'
,
globals
())
standard_html_footer
=
D
TMLFile
(
'dtml/topic_footer'
,
globals
())
Globals
.
default__class_init__
(
ProductHelp
)
lib/python/HelpSys/HelpTopic.py
View file @
8516304d
...
...
@@ -86,7 +86,7 @@
import
Acquisition
from
ComputedAttribute
import
ComputedAttribute
from
OFS.SimpleItem
import
Item
from
Globals
import
Persistent
,
HTML
,
H
TMLFile
,
ImageFile
from
Globals
import
Persistent
,
HTML
,
D
TMLFile
,
ImageFile
from
OFS.DTMLDocument
import
DTMLDocument
from
OFS.PropertyManager
import
PropertyManager
import
os.path
...
...
@@ -228,7 +228,7 @@ class DTMLTopic(HelpTopic):
self
.
title
=
title
file
,
ext
=
os
.
path
.
splitext
(
file
)
prefix
,
file
=
os
.
path
.
split
(
file
)
self
.
index_html
=
H
TMLFile
(
file
,
prefix
)
self
.
index_html
=
D
TMLFile
(
file
,
prefix
)
if
permissions
is
not
None
:
self
.
permissions
=
permissions
if
categories
is
not
None
:
...
...
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