示例#1
0
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"))
示例#2
0
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"))
示例#3
0
def index():
    return static_file("index.html", static_path)
示例#4
0
def server_templates(filepath):
    logging.debug("static filepath = %s" % filepath)
    return static_file(filepath, "%s/%s" % (static_path, "templates"))
示例#5
0
def server_lib(filepath):
    logging.debug("static filepath = %s" % filepath)
    return static_file(filepath, "%s/%s" % (static_path, "lib"))
示例#6
0
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"))
示例#7
0
def index():
  return static_file("index.html", static_path)
示例#8
0
def server_templates(filepath):
  logging.debug("static filepath = %s" % filepath)
  return static_file(filepath, "%s/%s" % (static_path, "templates"))
示例#9
0
def server_lib(filepath):
    logging.debug("static filepath = %s" % filepath)
    return static_file(filepath, "%s/%s" % (static_path, "lib"))
示例#10
0
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"))