Re: dirty deeds done dirt cheap
Marcos Dione <[email protected]> Wed, 24 Mar 2004 19:37:03 -0300
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
User-Agent: Mutt/1.3.28i
On Wed, Mar 24, 2004 at 05:19:41PM -0300, Marcos Dione wrote:
> flipping the docs I see that EditingContext is capable of tell
> wether it's dirty or not. but I think it would be better if I could ask
> the Entity if it's dirty or not; and, being dirty, ask it to ignore any
> changes not saved (which I think will resort to reload from the db)...
I note two things: first, asking an Entity if it's dirty or not is
impossible w/o an EC, so is unreasonable to ask for it. second, the
answer seems to be to use nested EC's, but if I do it that way, for
reseting I would need to discard the dirty EC, take a new one and
repopulate it with the original values (most probably this two EC's will
be child of one master EC at different times).
what's not clear for me is how to repopulate the second EC.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click