[Zope-Checkins] CVS: Packages/HelpSys - HelpTopic.py:1.14

Evan Simpson evan@zope.com
Mon, 15 Oct 2001 13:19:32 -0400


Update of /cvs-repository/Packages/HelpSys
In directory cvs.zope.org:/tmp/cvs-serv4222

Modified Files:
	HelpTopic.py 
Log Message:
Prevent relative-link badness by making topics __call__-based instead of
index_html-based.


=== Packages/HelpSys/HelpTopic.py 1.13 => 1.14 ===
     A basic Help Topic. Holds a text file.
     """
+    index_html = None
     def __init__(self, id, title, file, permissions=None, categories=None):
         self.id=id
         self.title=title
@@ -272,7 +273,7 @@
         if categories is not None:
             self.categories=categories
         
-    def index_html(self, REQUEST=None):
+    def __call__(self, REQUEST=None):
         "View the Help Topic"
         self._check_for_update()
         return self.obj
@@ -286,7 +287,9 @@
     """
     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 """
         self._check_for_update()
         return self.htmlfile(self, REQUEST)