def docs(filename): if filename != "privacy.html" and filename != "support.html" and filename != "about.html" and filename != "consent.html" and filename != "approval_letter.pdf": logging.error("Request for unknown filename " % filename) logging.error("Request for unknown filename " % filename) return HTTPError(404, "Don't try to hack me, you evil spammer") else: return static_file(filename, "%s/%s" % (static_path, "docs"))
def docs(filename): if filename != "privacy.html" and filename != "support.html" and filename != "about.html" and filename != "consent.html" and filename != "approval_letter.pdf": logging.error("Request for unknown filename "% filename) logging.error("Request for unknown filename "% filename) return HTTPError(404, "Don't try to hack me, you evil spammer") else: return static_file(filename, "%s/%s" % (static_path, "docs"))
def index(): return static_file("index.html", static_path)
def server_templates(filepath): logging.debug("static filepath = %s" % filepath) return static_file(filepath, "%s/%s" % (static_path, "templates"))
def server_lib(filepath): logging.debug("static filepath = %s" % filepath) return static_file(filepath, "%s/%s" % (static_path, "lib"))
def docs(filename): if filename != "privacy" and filename != "support" and filename != "about" and filename != "consent": return HTTPError(404, "Don't try to hack me, you evil spammer") else: return static_file("%s.html" % filename, "%s/%s" % (static_path, "docs"))