faster non forms
This commit is contained in:
1 parent
157146b948
commit
ba9e95a5c2
1 file changed
+3
-2
+3
-2
@@ -295,8 +295,9 @@ class Form(object):
|
|||||||
|
|
||||||
if isinstance(table, list):
|
if isinstance(table, list):
|
||||||
dbio = False
|
dbio = False
|
||||||
fields = table
|
# mimic a table from a list of fields without calling define_table
|
||||||
table = DAL(None).define_table('tmp', *fields)
|
formname = formname or 'none'
|
||||||
|
for field in table: field.tablename = formname
|
||||||
|
|
||||||
if isinstance(record, (int, long, basestring)):
|
if isinstance(record, (int, long, basestring)):
|
||||||
record_id = int(str(record))
|
record_id = int(str(record))
|
||||||
|
|||||||
Reference in new issue
Block a user