added example for static html files

This commit is contained in:
lars 2010-04-15 12:43:23 +00:00
parent aef007e4d6
commit c6b1538732
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<xi:include href="layout.html" />
<head>
<title>Static example</title>
</head>
<body>
<h1>Foo</h1>
</body>
</html>

View file

@ -314,6 +314,10 @@ def show_one_poll(poll_hash=None):
else:
return bobo.redirect(BASE_DICT["base_url"])
@bobo.query('/static/:pagename')
def show_static(pagename=None):
value_dict = get_default_values()
return render(pagename, **value_dict)
for table in (Poll, ContentSubmission, PollSetting):
#Poll.dropTable()