Dbus is not filtering by tags

Bug #498862 reported by pt123 on 2009-12-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Lionel Dricot

Bug Description

When running a python script to use DBUS to extract task lists from GTG, I can not get the filter by tags to work.

Here is the script I am using
#!/usr/bin/env python
import sys, dbus, gobject, dbus.glib
bus = dbus.SessionBus()

obj = bus.get_object("org.GTG", "/org/GTG")
gtg = dbus.Interface(obj, "org.GTG")
for t in gtg.get_tasks_filtered(["myTag"], ["Done"], False, False): print t["title"]

It produces the same result as when no tags are passed
for t in gtg.get_tasks_filtered([""], ["Done"], False, False): print t["title"]

Iam using 0.2 on Karmic.

Lionel Dricot (ploum) wrote :

It also don't care much about the status !

Changed in gtg:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → 0.3
Lionel Dricot (ploum) on 2009-12-20
Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
status: Confirmed → In Progress
Lionel Dricot (ploum) wrote :

Ok, I was wrong, it cares about the status.

pt123 > you simply forgot to add the "@" in front of the tag !!

I admit it's not really clear so we will add it automatically if needed in the future.

Changed in gtg:
importance: Critical → Medium
Lionel Dricot (ploum) wrote :

fixed in rev. 489

Changed in gtg:
status: In Progress → Fix Committed
pt123 (pt123) wrote :

working fine with the @tags
sweet thanks

Lionel Dricot (ploum) on 2009-12-20
Changed in gtg:
milestone: 0.3 → 0.2.1
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers