smartdictform again
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-04-07 18:31:34) dev
|
Version 1.99.7 (2012-04-07 18:44:26) dev
|
||||||
|
|||||||
@@ -1317,7 +1317,6 @@ class SQLFORM(FORM):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def smartdictform(session,name,filename=None,query=None,**kwargs):
|
def smartdictform(session,name,filename=None,query=None,**kwargs):
|
||||||
import os
|
import os
|
||||||
if not name in session:
|
|
||||||
if query:
|
if query:
|
||||||
session[name] = db(query).select().first().as_dict()
|
session[name] = db(query).select().first().as_dict()
|
||||||
elif os.path.exists(filename):
|
elif os.path.exists(filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user