faster labels, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.6-stable+timestamp.2013.04.12.10.46.23
|
Version 2.4.6-stable+timestamp.2013.04.12.13.07.05
|
||||||
|
|||||||
+1
-1
@@ -538,7 +538,7 @@ class IS_IN_DB(Validator):
|
|||||||
records = self.dbset(table).select(table.ALL, **dd)
|
records = self.dbset(table).select(table.ALL, **dd)
|
||||||
self.theset = [str(r[self.kfield]) for r in records]
|
self.theset = [str(r[self.kfield]) for r in records]
|
||||||
if isinstance(self.label, str):
|
if isinstance(self.label, str):
|
||||||
self.labels = [self.label % dict(r) for r in records]
|
self.labels = [self.label % r for r in records]
|
||||||
else:
|
else:
|
||||||
self.labels = [self.label(r) for r in records]
|
self.labels = [self.label(r) for r in records]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user