[Ml-yokadi] undo ;-)

Sébastien Renard Sebastien.Renard
Mer 10 Déc 23:09:51 CET 2008


Le mercredi 10 décembre 2008, Aurélien Gâteau a écrit :
> > Not so easy. I first try to sqlobject but it was no help.
> >
> > Here's the state of my thought :
> > - create an Undo class that is composed of the following members :
> > 	o Date
> > 	o Type of data (Task, Keyword, Project...)
> > 	o Dict of all data attribute
> > ... and two methods :
> > 	o one to create Undo object from Task/Project... object
> > 	o one to resurect Task/Proect... from undo object
> > - the undo stack is a list of Undo object on the Yokadi class
> > (self.undoStack) - each time a function change an object, it must save
> > its state into an Undo object and put it on the stack
> > (self.undoStack.append(previousObject).
> >
> > First implementation would only allow to undo actions in reverse order. A
> > second release could allow to undo arbitrary item in the undo stack (with
> > all the dependency problematic).
>
> I must confess I am not too enthusiast at the idea of complexifying the
> code this way. I must confess Yokadi is a side project for me, so it
> needs to be easy to maintain and extend.

Right. Same for me. This feature is not a priority at all. I will make some 
try to have a look at the real complexity. If it's too complicated it will go 
to /dev/null.

a+
-- 
Sébastien


Plus d'informations sur la liste de diffusion Ml-yokadi