thirdparty/google_appengine/google/appengine/api/validation.py
changeset 2878 cf4b80992451
parent 2864 2e0b0af889be
--- a/thirdparty/google_appengine/google/appengine/api/validation.py	Mon Sep 07 20:26:39 2009 +0200
+++ b/thirdparty/google_appengine/google/appengine/api/validation.py	Mon Sep 07 20:27:37 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)))