]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
this assertion not really needed, esp. if a PickleType is used to take in a list
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Apr 2006 14:54:16 +0000 (14:54 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Apr 2006 14:54:16 +0000 (14:54 +0000)
lib/sqlalchemy/attributes.py

index 1a399159e7d6088033ff73f4a8c8b137cfc914a7..e399e7ed0ca981ea65e7e2a91032910936952eff 100644 (file)
@@ -109,8 +109,8 @@ class ScalarAttribute(ManagedAttribute):
     def getattr(self, **kwargs):
         return self.obj.__dict__[self.key]
     def setattr(self, value, **kwargs):
-        if isinstance(value, list):
-            raise InvalidRequestError("assigning a list to scalar property '%s' on '%s' instance %d" % (self.key, self.obj.__class__.__name__, id(self.obj)))
+        #if isinstance(value, list):
+        #    raise InvalidRequestError("assigning a list to scalar property '%s' on '%s' instance %d" % (self.key, self.obj.__class__.__name__, id(self.obj)))
         orig = self.obj.__dict__.get(self.key, None)
         if orig is value:
             return