Ed Leafe wrote:
> On Dec 25, 2006, at 10:40 PM, Paul McNett wrote:
>
>> I don't think we'll need dMemento, as the plain dict will be
>> sufficent.
>
> What about creating updated diffs?
Contained in dCursorMixin.getRecordStatus():
def getRecordStatus(self, row=None):
""" Returns a dictionary containing an element for each changed
field in the specified record (or the current record if none is
specified).
The field name is the key for each element; the value is a
2-element
tuple, with the first element being the original value, and the
second
being the current value.
"""
ret = {}
if row is None:
row = self.RowNumber
rec = self._records[row]
mem = self._mementos[rec[self.KeyField]]
for k, v in mem.items():
ret[k] = (v, rec[k])
return ret
--
pkm ~ http://paulmcnett.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev