Update sqlhtml.py

Improved readability in code
This commit is contained in:
Omar Trinidad Gutiérrez Méndez
2014-07-01 16:24:40 -05:00
parent 6e8e95eb3e
commit 13d4d892b7

View File

@@ -1195,8 +1195,7 @@ class SQLFORM(FORM):
xfields.append((row_id, label, inp, comment))
self.custom.dspval[fieldname] = dspval if (dspval is not None) else nbsp
self.custom.inpval[
fieldname] = inpval if not inpval is None else ''
self.custom.inpval[fieldname] = inpval if not inpval is None else ''
self.custom.widget[fieldname] = inp
# if a record is provided and found, as is linkto