Ejemplo n.º 1
0
def help():
    with app.app_context():
        return HelpForm(app_site())
Ejemplo n.º 2
0
def get(table):
    conn = HelpForm(app_site())
    table_as_class = table.title().replace('_', '')
    form = init_form(eval('%sForm' % table_as_class))
    kwargs = conn.get_kwargs(table, 'hermes', conn.get('keys'), form)
    return render_template('entry.html', **kwargs)
Ejemplo n.º 3
0
 def get_vars(self, table):
     table_as_class = table.title().replace('_', '')
     form = init_form(eval('%sForm' % table_as_class))
     conn = HelpForm(app_site())
     redir = '.get'
     return form, conn, redir
Ejemplo n.º 4
0
def transaction():
    conn = HelpForm(app_site())
    form = init_form(TransactionForm)
    kwargs = conn.get_kwargs(table, 'cronus', conn.get('keys'), form, False)
    return render_template('entry.html', **kwargs)