Commit d4e2806f authored by Evan Simpson's avatar Evan Simpson

Prevent relative-link badness by making topics __call__-based instead of

index_html-based.
parent e34ba6d3
...@@ -261,6 +261,7 @@ class TextTopic(HelpTopic): ...@@ -261,6 +261,7 @@ class TextTopic(HelpTopic):
""" """
A basic Help Topic. Holds a text file. A basic Help Topic. Holds a text file.
""" """
index_html = None
def __init__(self, id, title, file, permissions=None, categories=None): def __init__(self, id, title, file, permissions=None, categories=None):
self.id=id self.id=id
self.title=title self.title=title
...@@ -272,7 +273,7 @@ class TextTopic(HelpTopic): ...@@ -272,7 +273,7 @@ class TextTopic(HelpTopic):
if categories is not None: if categories is not None:
self.categories=categories self.categories=categories
def index_html(self, REQUEST=None): def __call__(self, REQUEST=None):
"View the Help Topic" "View the Help Topic"
self._check_for_update() self._check_for_update()
return self.obj return self.obj
...@@ -286,7 +287,9 @@ class STXTopic(TextTopic): ...@@ -286,7 +287,9 @@ class STXTopic(TextTopic):
""" """
A structured-text topic. Holds a HTMLFile object. A structured-text topic. Holds a HTMLFile object.
""" """
def index_html(self, REQUEST=None): index_html = None
def __call__(self, REQUEST=None):
""" View the STX Help Topic """ """ View the STX Help Topic """
self._check_for_update() self._check_for_update()
return self.htmlfile(self, REQUEST) return self.htmlfile(self, REQUEST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment