new __new__ syntax

This commit is contained in:
Massimo Di Pierro
2011-12-31 11:48:18 -06:00
parent 5b701ea095
commit 31f6c88b9d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -986,7 +986,7 @@ class SQLFORM(FORM):
table = TABLE()
for id,a,b,c in xfields:
raw_b = self.field_parent[id] = b
newrows = self.formstyle(id,a,raw_b,c)
newrows = self.formstyle(id,a,raw_b,c)
if type(newrows).__name__ != "tuple":
newrows = [newrows]
for newrow in newrows: