Enhancements - modifiers

- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
This commit is contained in:
Paul Beckingham 2009-06-12 21:11:33 -04:00
parent 5a0535c9b5
commit bd0309b4ff
6 changed files with 160 additions and 153 deletions

View file

@ -479,6 +479,15 @@ void Context::constructFilter ()
foreach (att, task)
if (att->first != "uuid")
filter.push_back (att->second);
// TODO this doesn't work.
if (task.has ("description"))
{
std::vector <std::string> words;
split (words, task.get ("description"), ' ');
foreach (word, words)
filter.push_back (Att ("description", "contains", *word));
}
}
////////////////////////////////////////////////////////////////////////////////