thirdparty/google_appengine/google/appengine/ext/db/__init__.py
changeset 149 f2e327a7c5de
parent 109 620f9b141567
child 297 35211afcd563
--- a/thirdparty/google_appengine/google/appengine/ext/db/__init__.py	Tue Sep 16 01:18:49 2008 +0000
+++ b/thirdparty/google_appengine/google/appengine/ext/db/__init__.py	Tue Sep 16 02:28:33 2008 +0000
@@ -2129,6 +2129,8 @@
 
     Note that the only permissible value for 'required' is True.
     """
+    if item_type is str:
+      item_type = basestring
     if not isinstance(item_type, type):
       raise TypeError('Item type should be a type object')
     if item_type not in _ALLOWED_PROPERTY_TYPES: