[SQL-CVS] r1338 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2005-12-05 16:51:18
|
Author: phd
Date: 2005-12-05 16:51:05 +0000 (Mon, 05 Dec 2005)
New Revision: 1338
Modified:
SQLObject/trunk/sqlobject/main.py
Log:
A patch by Luke Opperman <lu...@me...> for plain/non-plain setters.
Modified: SQLObject/trunk/sqlobject/main.py
===================================================================
--- SQLObject/trunk/sqlobject/main.py 2005-12-05 16:24:30 UTC (rev 1337)
+++ SQLObject/trunk/sqlobject/main.py 2005-12-05 16:51:05 UTC (rev 1338)
@@ -1131,6 +1131,9 @@
if to_python:
value = to_python(dbValue, self._SO_validatorState)
setattr(self, instanceName(name), value)
+
+ self._SO_createValues.update(kw)
+
for name, value in extra.items():
try:
getattr(self.__class__, name)
@@ -1142,7 +1145,6 @@
except AttributeError, e:
raise AttributeError, '%s (with attribute %r)' % (e, name)
- self._SO_createValues.update(kw)
self.dirty = True
return
|