Exemplo n.º 1
0
	def get_vars(self):
		form = init_form(TrxnUploadForm)
		site = portify(url_for('api', _external=True))
		csv = CSV(form['name'], site, display=True)
		func = csv.post
		args = (csv.load(),)
		return form, func, args, table, redir
Exemplo n.º 2
0
	def get_vars(self, table):
		table_as_class = table.title().replace('_', '')
		conn = HelpForm(app_site())
		form = init_form(eval('%sForm' % table_as_class))
		return form, conn, redir
Exemplo n.º 3
0
def upload():
	form = init_form(TrxnUploadForm)
	csv = CSV(form['name'])
	func = csv.post
	args = (csv.load(),)
	return form, func, args, table, redir
Exemplo 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)
Exemplo n.º 5
0
	def get_vars(self, table):
		table_as_class = table.title().replace('_', '')
		form = init_form(eval('%sForm' % table_as_class))
		entry = eval('%s()' % table_as_class)
		return form, entry, redir
Exemplo n.º 6
0
def transaction():
	site = portify(url_for('api', _external=True))
	conn = Connection(site, display=True)
	form = init_form(TransactionForm)
	kwargs = get_kwargs(str(table), 'cronus', conn, form, False)
	return render_template('entry.html', **kwargs)
Exemplo n.º 7
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)
Exemplo n.º 8
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
Exemplo n.º 9
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)
Exemplo n.º 10
0
def upload():
    form = init_form(TrxnUploadForm)
    csv = CSV(form['name'])
    func = csv.post
    args = (csv.load(), )
    return form, func, args, table, redir
Exemplo n.º 11
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)