[Ml-yokadi] Module reorg
Aurélien Gâteau
aurelien.gateau
Dim 7 Déc 23:05:33 CET 2008
Sébastien Renard wrote:
> Le dimanche 7 décembre 2008, Aurélien Gâteau a écrit :
>> Sébastien Renard wrote:
>>> Hello yokaders !
>>>
>>> Yokadi source tree tends to be more and more messy. We have 17 .py files
>>> at the root. Only tests and update are grouped in folders.
>>>
>>> Time to reorganise it isn't it ?
>> Honestly, I consider 17 files to be not that much. The current project I
>> work on at work has 91 files in the main dir and I don't feel like it's
>> a problem.
>
> Really ?
Yes, no kidding :)
>> exportTasks
>> => disappear if t_export is merged with t_list
>
> We can keep it separate to avoid a huge taskcmd.py
It should not cause taskcmd.py to grow too much, since most of the code
would be in the renderers.
> In a ideal world, I think *cmd.py module should only do the parsing and
> presentation part. Every complicated stuff should be done in backstage
> module.
Hehe, I guess you would not want to look at Yokadi beginnings, where all
commands were in yokadi.py. But I was too ashamed of it so I fixed this
before Simon installed it :)
Right now taskcmd.py is 405 lines. There are quite bigger modules
around. A quick look at /usr/lib/python2.5 gives us 1689 lines for
optparse.py for example.
>> Only thing remaining is ENCODING. Don't know what to do about this one
>
> We can't put it yokadi.py because every other modules import it. As it is text
> related, we can put it with tui.py ?
Yes, good idea.
Aurélien
Plus d'informations sur la liste de diffusion Ml-yokadi