projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
666cc43
)
Rename PageFormatter to WikiFormatter
author
Bernie Innocenti
<bernie@codewiz.org>
Mon, 28 Jul 2008 06:05:09 +0000
(11:50 +0545)
committer
Bernie Innocenti
<bernie@codewiz.org>
Mon, 28 Jul 2008 06:05:14 +0000
(11:50 +0545)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 0607006331db081e90b43ceab3430f6bac4726d3..a81ac72da5d6c09c54297162822ce98879db9a28 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-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>'
print '<p class="modified">last modified %s</p>' % mod_string
print '</div></body></html>'
-class
Page
Formatter:
+class
Wiki
Formatter:
"""Object that turns Wiki markup into HTML.
All formatting commands can be parsed one line at a time, though
"""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():
def send_naked(self):
if self.can_read():
-
Page
Formatter(self.get_raw_body()).print_html()
+
Wiki
Formatter(self.get_raw_body()).print_html()
else:
send_guru("Read access denied by ACLs", "notice")
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'>"
print "<p>" + Page('EditingTips').link_to() + "</p>"
if preview:
print "<div class='preview'>"
-
Page
Formatter(preview).print_html()
+
Wiki
Formatter(preview).print_html()
print "</div>"
send_footer(self.page_name)
print "</div>"
send_footer(self.page_name)