Exemplo n.º 1
0
    def on_get(req, resp):
        adventurers = [yenna, rangwen, angvar, mencar, arvium, gargan, raziel, ozy, reicon]

        adventurer = yenna

        selected_adventurer = req.params.get("adventurer", "")
        for adv in adventurers:
            if adv.names["en"].lower() == selected_adventurer:
                adventurer = adv
                break

        resp.status = falcon.HTTP_200
        resp.body = jinja_env.get_template("feat_list.html").render(
            adventurers=adventurers, adventurer=adventurer, feat_list=lists.list_feats(), rolls=rolls, page="feat_list"
        )
Exemplo n.º 2
0
    def on_get(req, resp):
        adventurers = [yenna, rangwen, angvar, mencar, arvium, gargan, raziel, ozy, reicon]

        adventurer = yenna

        selected_adventurer = req.params.get('adventurer', '')
        for adv in adventurers:
            if adv.names['en'].lower() == selected_adventurer:
                adventurer = adv
                break

        resp.status = falcon.HTTP_200
        resp.body = jinja_env.get_template('character_sheet.html').render(
            adventurers=adventurers,
            adventurer=adventurer,
            lists=lists,
            calc=calc,
            powers=powers,
            rolls=rolls,
            items=items,
            sorted=sorted,
            isinstance=isinstance,
            page='character_sheet',
        )