dirty deeds done dirt cheap
Marcos Dione <[email protected]> Wed, 24 Mar 2004 17:19:41 -0300
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
User-Agent: Mutt/1.3.28i
I have the following problem: I have a form where I can edit
Modeling Entities. if you perss a button, it gets saved (the changes, I
mean). but if you press that other button, it should revert any changes
done so far. the Modeling Entities are not saved yet (if you saved
alredy, I'm sorry :)
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)...
note that this seems to have nothing to do with undo/redo, or at
least I think so.
-------------------------------------------------------
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