[Ml-yokadi] Get rid of set
Sébastien Renard
Sebastien.Renard
Mer 11 Fév 08:50:04 CET 2009
Le mardi 10 février 2009, Aurélien Gâteau a écrit :
> Sébastien Renard wrote:
> > Hello,
> >
> > How about removing the "set" word of task command ? It's not usefull and
> > quite annoying when using tab to complete.
> >
> > t_set_due => t_due
> > t_set_urgency => t_urgency
> > t_set_project => t_project
>
> I have used "set" so that all commands would be verbs, but I can see how
> they can be annoying. We should keep the others as "deprecated" for the
> next version, though. Something like this:
>
> def warnDeprecated(old, new):
> tui.warn("Command '%s' is deprecated, use '%s' instead"
> % (old, new))
>
> class TaskCmd(object):
> ...
> def do_t_set_due(self, line):
> warnDeprecated("t_set_due", "t_due")
> self.do_t_due(line)
Sure. I do that in the following days.
--
Sébastien
Plus d'informations sur la liste de diffusion Ml-yokadi