thirdparty/google_appengine/google/appengine/api/validation.py
changeset 2864 2e0b0af889be
parent 828 f5fd65cc3bf3
--- a/thirdparty/google_appengine/google/appengine/api/validation.py	Sat Sep 05 14:04:24 2009 +0200
+++ b/thirdparty/google_appengine/google/appengine/api/validation.py	Sun Sep 06 23:31:53 2009 +0200
@@ -919,7 +919,9 @@
                             'but found \'%s\'.' % value)
 
     for item in value:
-      if not isinstance(item, self.constructor):
+      if isinstance(self.constructor, Validator):
+        item = self.constructor.Validate(item)
+      elif not isinstance(item, self.constructor):
         raise ValidationError('Repeated items must be %s, but found \'%s\'.'
                               % (str(self.constructor), str(item)))