From ccb30be0a28a93f29fbd977da585368db255f554 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 6 Apr 2006 14:54:16 +0000 Subject: [PATCH] this assertion not really needed, esp. if a PickleType is used to take in a list --- lib/sqlalchemy/attributes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2