[Ml-yokadi] Summary of recent changes

Aurélien Gâteau aurelien.gateau
Dim 7 Déc 23:12:18 CET 2008


Sébastien Renard wrote:
> Le dimanche 7 décembre 2008, Aurélien Gâteau a écrit :
>>> Things like t_list --d +1w  ?
>>>
>>> Yes, it would be cool.
>> It should probably be -d -1w for consistency, but I fear this will clash
>> with option parser.
> 
> Sure ;-)
> 
>>> We would need to factorize the code then.
>> I did the very first step by moving the code from t_set_due to
>> dateutils.py.
> 
> Thx.
> 
>>> BTW, I had a raw mode to t_list (-r) to ease copy/paste in email.
>> Actually I was thinking about merging t_list and t_export. It would
>> require adding two options:
>>
>> -o,--output to optionally redirect the output to a file.
>> --format to define the output format:
>> - table: the actual output
>> - list:  the simple version you implemented
>> - xml:   from t_export
>> - csv:         "
>> - html:        "
>>
>> The implementation should use different renderer classes, based on the
>> format.
> 
> Well, we have to change renderer interaction in this case. Actually renderer 
> can be call to print task header, task line or task detail.
> This make sense for screen display but not for XML, CSV or whatever format.

True, there should be only one method to render the task list: 
renderTaskList(). This method would accept two parameters: the project 
instance, and a list of tasks.

Aurélien


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