faster labels, thanks Anthony
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -538,7 +538,7 @@ class IS_IN_DB(Validator):
|
||||
records = self.dbset(table).select(table.ALL, **dd)
|
||||
self.theset = [str(r[self.kfield]) for r in records]
|
||||
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:
|
||||
self.labels = [self.label(r) for r in records]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user