Merge with upstream.

This commit is contained in:
Michele Comitini
2013-04-13 00:04:26 +02:00
5 changed files with 27 additions and 24 deletions
+1 -1
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]