Handle empty requires list when wrapping db.table.field.requires in IS_EMPTY_OR

This commit is contained in:
Adam Bryzak
2012-04-09 23:22:15 +10:00
parent 6bdaf9e8fb
commit 81c36b1d26
+1
View File
@@ -2483,6 +2483,7 @@ class IS_EMPTY_OR(Validator):
if empty:
return (self.null, None)
if isinstance(self.other, (list, tuple)):
error = None
for item in self.other:
value, error = item(value)
if error: break