[Ml-yokadi] undo ;-)
Aurélien Gâteau
aurelien.gateau
Mer 10 Déc 10:17:44 CET 2008
Sébastien Renard wrote:
> Well, it will be after the first release, but I would like to implement a
> basic undo feature to Yokadi.
>
> Basically, for each function that is « undoable », the object before change is
> save on a stack (in memory). When undo is called, the last object put in the
> undo stack is poped and written in database.
>
> I am just wondering how to proper save the object state properly. Sqlobject
> does not seem to provide such mechanism. We could imagine a task structure (a
> dict) - if we make undo only for task as a short term target.
>
> Do you feel that it would be nice or just crazy/stupid ?
I think it would be really nice, especially for commands like t_remove
(although it's less bad now that you get a confirmation). but I do not
have any idea for a proper implementation.
Aurélien
Plus d'informations sur la liste de diffusion Ml-yokadi