[Zope3-checkins] CVS: zopeproducts/zwiki/renderer - stx.py:1.2
Stephan Richter
srichter@cbu.edu
Thu, 10 Apr 2003 02:28:17 -0400
Update of /cvs-repository/zopeproducts/zwiki/renderer
In directory cvs.zope.org:/tmp/cvs-serv26676/renderer
Modified Files:
stx.py
Log Message:
- Fully functional 'wiki' skin for viewing Wiki Pages. I tried very hard
(and was successful) in writing only one screen for both interfaces: the
ZMI and the end user. Here is how you can get to the new skin:
http://localhost:8080/++skin++wiki/wiki/FrontPage
- Internationalized all of the skin as good as I could. So most of the
Site's Software text is displayed in German, including some complex
message strings.
- Improved 'Add Comment' screen.
=== zopeproducts/zwiki/renderer/stx.py 1.1 => 1.2 ===
--- zopeproducts/zwiki/renderer/stx.py:1.1 Tue Apr 8 22:49:11 2003
+++ zopeproducts/zwiki/renderer/stx.py Thu Apr 10 02:28:16 2003
@@ -26,13 +26,15 @@
__used_for__ = IStructuredTextSource
def render(self, context):
- text = HTML(str(self.context))
+ html = HTML(str(self.context))
# strip html & body added by some zope versions
- text = re.sub(
- r'(?sm)^<html.*<body.*?>\n(.*)</body>\n</html>\n',r'\1', text)
+ html = re.sub(
+ r'(?sm)^<html.*<body.*?>\n(.*)</body>\n</html>\n',r'\1', html)
- return text
+ html = html.replace('\n----------',
+ '\n<hr class="comments" size="1" NOSHADE>\n')
+ return html
def createComment(self, comment, number):