[Ml-yokadi] Get rid of set

Aurélien Gâteau aurelien.gateau
Mar 10 Fév 23:18:18 CET 2009


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)

Aurélien



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