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
e9e63a38
Commit
e9e63a38
authored
Jan 10, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple bugs in DTMLTopic: feed HTMLFile a prefix, and fix indexing.
parent
629cbfee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/HelpSys/HelpTopic.py
lib/python/HelpSys/HelpTopic.py
+4
-4
No files found.
lib/python/HelpSys/HelpTopic.py
View file @
e9e63a38
...
...
@@ -221,9 +221,9 @@ class DTMLTopic(HelpTopic):
def
__init__
(
self
,
id
,
title
,
file
,
permissions
=
None
,
categories
=
None
):
self
.
id
=
id
self
.
title
=
title
if
string
.
rfind
(
file
,
'.dtml'
)
==
len
(
file
)
-
5
:
file
=
file
[:
-
5
]
self
.
index_html
=
HTMLFile
(
file
,
''
)
file
,
ext
=
os
.
path
.
splitext
(
file
)
prefix
,
file
=
os
.
path
.
split
(
file
)
self
.
index_html
=
HTMLFile
(
file
,
prefix
)
if
permissions
is
not
None
:
self
.
permissions
=
permissions
if
categories
is
not
None
:
...
...
@@ -231,7 +231,7 @@ class DTMLTopic(HelpTopic):
def
SearchableText
(
self
):
"The full text of the Help Topic, for indexing purposes"
return
'%s %s'
%
(
self
.
title
,
self
.
obj
.
read
())
return
'%s %s'
%
(
self
.
title
,
self
.
index_html
.
read
())
class
TextTopic
(
HelpTopic
):
...
...
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