GTG

Comment 4 for bug 529817

Revision history for this message
Bryce Harrington (bryce) wrote :

I've updated the dbus commands on the 0.3 branch to work with the new filters system. I had to change the API a bit since some of the internal functionality has changed around.

get_tasks_filtered() and get_task_ids_filtered() are the major changes. Both routines are still present but their parameter signatures are changed - they now use filters directly. Unfortunately because of this they no longer support searching by tags, but on the plus side they now will work with any filter, so as new filters are added in the future, this will all "just work".

get_task_ids() is dropped. I decided if someone needs that, they can just use get_task_ids_filtered().

I decided to keep get_tasks() as a convenience function. Basically it just calls self.get_tasks_filtered(['all'])

Also, I've implemented a command line tool gtcli in trunk which has been quite handy in testing out the dbus API. I plan to continue maintaining this and adding to it, and patches for it are of course quite welcome!