From: Mike Bayer Date: Thu, 6 Apr 2006 14:54:16 +0000 (+0000) Subject: this assertion not really needed, esp. if a PickleType is used to take in a list X-Git-Tag: rel_0_1_6~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb30be0a28a93f29fbd977da585368db255f554;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git this assertion not really needed, esp. if a PickleType is used to take in a list --- diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index 1a399159e7..e399e7ed0c 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -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