From: Bernie Innocenti Date: Mon, 28 Jul 2008 06:05:09 +0000 (+0545) Subject: Rename PageFormatter to WikiFormatter X-Git-Tag: v3.0~17 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=44aff46c69f5a6faf0960891481c5295d70d940a;p=geekigeeki.git Rename PageFormatter to WikiFormatter --- diff --git a/geekigeeki.py b/geekigeeki.py index 0607006..a81ac72 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -264,7 +264,7 @@ def send_footer(name, mod_string=None): print '

last modified %s

' % mod_string print '' -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 "

" + Page('EditingTips').link_to() + "

" if preview: print "
" - PageFormatter(preview).print_html() + WikiFormatter(preview).print_html() print "
" send_footer(self.page_name)