[Ml-yokadi] negative keyword filtering (was Re: feature request)
Sébastien Renard
Sebastien.Renard at digitalfox.org
Fri Oct 23 19:40:03 CEST 2009
Le mercredi 21 octobre 2009 23:18:18, Aurélien Gâteau a écrit :
> I think it would be more natural to use !@keyword
Why not ? But this has complex consequences on keyword dict structure.
> and @_severity!=2.
> @_severity>=2 could be quite useful as well.
Oh yes ! Good idea.
So !@_severity!=2 would mean all task that don't have severity 1, 3 or 4. Ok ?
We need to redesign taskHasWantedKeywordDict sub-function and the keyword dict
structure to store new info :
- not keyword
- operator value (=, !=, >, <, =<, =>)
This also have an impact on keyword parser ; = is no more the only separator.
I would prefer to add some method to TaskKeyword/ProjectKeyword (on a parent
class to factorize) and use those object in list instead of using python dict
of string.
Another idea is to create a class "KeywordFilter".
What do you think of that ?
--
Sébastien
More information about the Ml-yokadi
mailing list