On 11/6/06, SmileyChris <[EMAIL PROTECTED]> wrote:
>
> I'm not certain, but it could be that the status_id of the new object
> is returning as a string (because it's most likely come from web
> request). Try comparing the str() of each.
>
> Your __dict__ code is a bit messy - you shouldn't really
I'm not certain, but it could be that the status_id of the new object
is returning as a string (because it's most likely come from web
request). Try comparing the str() of each.
Your __dict__ code is a bit messy - you shouldn't really need to use
internal methods like this. How about just using
Currently, I am overriding the save() method to keep records of all
changes made to objects. I've created a simplified example below.
I have two questions:
1) Is there an obvious better way?
2) When comparing the 'status_id' fields, they always are unequal even
when the status wasn't changed
3 matches
Mail list logo