The unified diff between revisions [2531d294..] and [0b849689..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'poetweb.py'
#
#
# patch "poetweb.py"
# from [eee7ff20b7c61a2fa7d7d1eba4ec741a343cf535]
# to [024693486e0ca4cae14590fd8483f3780293b2cd]
#
============================================================
--- poetweb.py eee7ff20b7c61a2fa7d7d1eba4ec741a343cf535
+++ poetweb.py 024693486e0ca4cae14590fd8483f3780293b2cd
@@ -29,7 +29,8 @@ urls = (
}
urls = (
- '/(' + site_id_re + ')/(' + username_re + ')' + '/haiku', 'view',
+ '.*/(' + site_id_re + ')/(' + username_re + ')' + '/haiku', 'view',
+ '.*', 'testthing'
)
def gen_haiku(rss_uri):
@@ -97,10 +98,14 @@ class view:
attempts, haiku = gen_haiku(uri)
renderer.render("haiku.html",
attempts=attempts,
- haiku=(' '.join(t) for t in haiku),
+ haiku=[' '.join(t) for t in haiku],
page_title="your haiku",
username=username)
+class testthing:
+ def GET(self):
+ print "Hello, world: this is the catch-all page"
+
if __name__ == '__main__':
web.internalerror = web.debugerror
web.run(urls, web.reloader)