コード例 #1
0
ファイル: html.py プロジェクト: djfiander/BiblioBox
def author(au=None):
    stderr.write("html author!\n")
    if "au" in bottle.request.params:
        au = bottle.request.params["au"]

    if au:
        template = catlookup.get_template("author.html")
    else:
        template = catlookup.get_template("authorbrowse.html")

    return catrender(template, author_id=au)
コード例 #2
0
ファイル: html.py プロジェクト: djfiander/BiblioBox
def title():
    stderr.write("html title!\n")
    template = catlookup.get_template("title.html")
    return catrender(template)
コード例 #3
0
ファイル: html.py プロジェクト: djfiander/BiblioBox
def index():
    stderr.write("html index!\n")
    template = catlookup.get_template("root.html")
    return catrender(template)