コード例 #1
0
ファイル: views.py プロジェクト: Anhmike/prometheus
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)
コード例 #2
0
ファイル: forms.py プロジェクト: shintojoseph123/prometheus
def help():
    with app.app_context():
        return HelpForm(app_site())
コード例 #3
0
ファイル: views.py プロジェクト: Anhmike/prometheus
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)
コード例 #4
0
ファイル: views.py プロジェクト: shintojoseph123/prometheus
 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
コード例 #5
0
ファイル: views.py プロジェクト: shintojoseph123/prometheus
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)
コード例 #6
0
ファイル: views.py プロジェクト: shintojoseph123/prometheus
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)