removed obsolete "static" content delivery

This commit is contained in:
lars 2010-04-25 21:42:03 +00:00
parent 814e3f6364
commit 7b9a0d327e
3 changed files with 0 additions and 17 deletions

Binary file not shown.

View file

@ -1 +0,0 @@
hello

View file

@ -337,11 +337,6 @@ def show_one_poll(poll_hash=None):
else: else:
return bobo.redirect(BASE_DICT["base_url"]) 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)
@bobo.query('/node/:pagename') @bobo.query('/node/:pagename')
def show_static_nodes(pagename=None): def show_static_nodes(pagename=None):
""" meant for serving hand-changed, automatically styled content. """ """ meant for serving hand-changed, automatically styled content. """
@ -372,17 +367,6 @@ def static_files(p1=None, p2=None, p3=None):
pathname = os.path.join(pathname, subdir) pathname = os.path.join(pathname, subdir)
return get_static_file(pathname) return get_static_file(pathname)
@bobo.query("/:anypath")
def custom_static_files(anypath=None):
""" deliver static files directly below the directory /static/ """
if anypath is None:
bobo.redirect(BASE_DICT["base_url"])
basedir = os.path.join(BASE_DIR, "static")
pathname = os.path.abspath(os.path.join(basedir, anypath))
if pathname.startswith(basedir) and os.path.isfile(pathname):
return get_static_file(pathname)
bobo.redirect(BASE_DICT["base_url"])
for table in (Poll, ContentSubmission, PollSetting): for table in (Poll, ContentSubmission, PollSetting):
#Poll.dropTable() #Poll.dropTable()