GTG

Dbus is not filtering by tags

Bug #498862 reported by pt123
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Unassigned

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.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

It also don't care much about the status !

Changed in gtg:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → 0.3
Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
status: Confirmed → In Progress
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) 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
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

fixed in rev. 489

Changed in gtg:
status: In Progress → Fix Committed
Revision history for this message
pt123 (pt123) wrote :

working fine with the @tags
sweet thanks

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.