That changes everything :-)
if fact in your code you assign to value and put back this _modified_
value in the object, with the correction the value in memory is never
changed. I repeat it's simply what you are doing in the SO_setValue
method, I think that you just forgot to do that.
the difference are the first two letters in 'dbValue' :-)
Cyril Elkaim
Ian Bicking wrote:
> Cyril Elkaim wrote:
>
>> --- /home/cyril/src/SQLObject/sqlobject/main.py Tue Aug 31 10:49:27 2004
>> +++ main.py Thu Sep 2 18:26:55 2004
>> @@ -760,10 +760,14 @@
>> for name, value in kw.items():
>> fromPython = getattr(self, '_SO_fromPython_%s' %
>> name, None)
>> if fromPython:
>> - value = fromPython(value, self._SO_validatorState)
>> - toUpdate[name] = value
>> + dbValue = fromPython(value, self._SO_validatorState)
>> + else:
>> + dbValue = value
>> +
>> + toUpdate[name] = dbValue
>
>
> I don't see how this code changes anything...?
>
|