[Ml-yokadi] Module reorg
Aurélien Gâteau
aurelien.gateau
Dim 7 Déc 20:05:10 CET 2008
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.
I agree, however that something must be done for utils.py :)
Most functions are db related, so I would move them to dbutils.py:
addTask
getTaskFromId
getOrCreateKeyword
getOrCreateProject
createMissingKeywords
=> dbutils.py
getProjectFromName
=> projectcmd.py (only used here)
getItemPropertiesStartingWith
=> completers.py (only used here)
exportTasks
=> disappear if t_export is merged with t_list
Only thing remaining is ENCODING. Don't know what to do about this one
Plus d'informations sur la liste de diffusion Ml-yokadi