[Zope-Checkins] CVS: Zope/lib/python/HelpSys - HelpTopic.py:1.18
Andreas Jung
andreas@andreas-jung.com
Sat, 1 Feb 2003 05:07:37 -0500
Update of /cvs-repository/Zope/lib/python/HelpSys
In directory cvs.zope.org:/tmp/cvs-serv6272
Modified Files:
HelpTopic.py
Log Message:
merge from ajung-restructuredtext-integration-branch
=== Zope/lib/python/HelpSys/HelpTopic.py 1.17 => 1.18 ===
--- Zope/lib/python/HelpSys/HelpTopic.py:1.17 Wed Aug 14 17:34:42 2002
+++ Zope/lib/python/HelpSys/HelpTopic.py Sat Feb 1 05:07:34 2003
@@ -227,6 +227,28 @@
<dtml-var standard_html_footer>""")
+class ReSTTopic(TextTopic):
+ """
+ A reStructuredText [1]_ topic. Similar to STXTopic, it uses a
+ simle DTML construct to render its contents - this time using the
+ *reStructuredText* language.
+
+ .. [1] reStructuredText
+ (http://docutils.sourceforge.net/rst.html)
+ """
+ index_html = None
+
+ def __call__(self, REQUEST=None):
+ """ Renders the ReST Help Topic """
+ self._check_for_update()
+ return self.htmlfile(self, REQUEST)
+
+ htmlfile = HTML("""\
+<dtml-var standard_html_header>
+<dtml-var obj fmt="restructured-text">
+<dtml-var standard_html_footer>""")
+
+
class ImageTopic(HelpTopic):
"""
A image Help Topic. Holds an ImageFile object.