The problem with the way that the Gui does mementos
now is that it
operates on a dictionary of the models data. The mementos have no
awareness of the model itself. Enter MARealMemento... This uses a
dictionary checks as before BUT importantly read/writes from the GUI
are
performed upon a real copy of the model, which is returned upon
commit/save.
How do you edit existing objects then? How do you copy objects? How do
you handle other parts of the model that reference these objects?
I think that this potentially moves magritte up a
level in
user-interactivity
It is certainly an interesting approach to a valid problem. I tried to
add similar things a couple of years ago, but eventually gave up as it
was introducing more problems than it solved. I found that it was much
easier to achieve the same using multiple steps or manually composed
Magritte components.
Of course, especially with todays acceptance of AJAX, this becomes
interesting again. I am very interested in your progress and
interested to include it in the core, if it works well in a general
setup.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch