Rename PageFormatter to WikiFormatter
authorBernie Innocenti <bernie@codewiz.org>
Mon, 28 Jul 2008 06:05:09 +0000 (11:50 +0545)
committerBernie Innocenti <bernie@codewiz.org>
Mon, 28 Jul 2008 06:05:14 +0000 (11:50 +0545)
geekigeeki.py

index 0607006331db081e90b43ceab3430f6bac4726d3..a81ac72da5d6c09c54297162822ce98879db9a28 100755 (executable)
@@ -264,7 +264,7 @@ def send_footer(name, mod_string=None):
         print '<p class="modified">last modified %s</p>' % mod_string
     print '</div></body></html>'
 
-class PageFormatter:
+class WikiFormatter:
     """Object that turns Wiki markup into HTML.
 
     All formatting commands can be parsed one line at a time, though
@@ -603,7 +603,7 @@ class Page:
 
     def send_naked(self):
         if self.can_read():
-            PageFormatter(self.get_raw_body()).print_html()
+            WikiFormatter(self.get_raw_body()).print_html()
         else:
             send_guru("Read access denied by ACLs", "notice")
 
@@ -659,7 +659,7 @@ class Page:
         print "<p>" + Page('EditingTips').link_to() + "</p>"
         if preview:
             print "<div class='preview'>"
-            PageFormatter(preview).print_html()
+            WikiFormatter(preview).print_html()
             print "</div>"
         send_footer(self.page_name)