smartdictform again

This commit is contained in:
Massimo Di Pierro
2012-04-07 18:44:46 -05:00
parent 510f1c920c
commit 51fe7b4eed
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-07 18:31:34) dev Version 1.99.7 (2012-04-07 18:44:26) dev
-1
View File
@@ -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):