On 8/15/11 12:35 PM, John Fabiani wrote:
> On Monday, August 15, 2011 12:27:54 pm Paul McNett wrote:
>> oldVal() returns the old value, before any changes. So if it returns None,
>> that was  the starting value
>
> that's my point.  I'd like to use the field as a flag as part of a series of
> flags (even considered a state machine).  But now I need a field to tell me if
> there were any changes.

def isFieldChanged(self, field_name, row=None):
   return self.getFieldVal(field_name, row) != self.oldVal(field_name, row)

Paul
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/4e4975cd.2090...@ulmcnett.com

Reply via email to