diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 14:54:16 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 14:54:16 +0000 |
commit | ccb30be0a28a93f29fbd977da585368db255f554 (patch) | |
tree | 5e1e72a510f5e0eb9cea09450eb25bcb856d400b /lib/sqlalchemy/attributes.py | |
parent | ca00cd4cc2c46b0788217c39bfb9bf97fe3d86af (diff) | |
download | sqlalchemy-ccb30be0a28a93f29fbd977da585368db255f554.tar.gz |
this assertion not really needed, esp. if a PickleType is used to take in a list
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r-- | lib/sqlalchemy/attributes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index 1a399159e..e399e7ed0 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 |