1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Start diarioview

This commit is contained in:
Steffo 2019-07-05 22:42:49 +03:00
parent db50424a62
commit 715cd686a3

View file

@ -0,0 +1,18 @@
"""A Royal Games Diario viewer :py:class:`royalnet.web.Royalprint`."""
import flask as f
import os
from ... import Royalprint
from ....database.tables import Royal, WikiPage, WikiRevision
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')
rp = Royalprint("diarioview", __name__, url_prefix="/diarioview", template_folder=tmpl_dir,
required_tables={Royal, WikiPage, WikiRevision})
@rp.route("/", defaults={"page": 0})
@rp.route("/<int:page>")
def diarioview_index(page):
alchemy, alchemy_session = f.current_app.config["ALCHEMY"], f.current_app.config["ALCHEMY_SESSION"]
return "TODO"