faster labels, thanks Anthony

This commit is contained in:
Massimo
2013-04-12 13:07:37 -05:00
parent 446e641e64
commit 5e9fbdd24f
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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]