Re: Recording Changes minor problem

2006-11-06 Thread Matt H
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

Re: Recording Changes minor problem

2006-11-06 Thread SmileyChris
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

Recording Changes minor problem

2006-11-06 Thread Matt H
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