← Back to team overview

gtg team mailing list archive

[Bug 534840] Re: dbuswrapper.py in viewmanager generates traceback

 

could you try with 
bzr checkout --lightweight lp:gtg/0.2

-- 
dbuswrapper.py in viewmanager generates traceback
https://bugs.launchpad.net/bugs/534840
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Incomplete

Bug description:
When I execute the following code 

import dbus
bus = dbus.SessionBus()
obj = bus.get_object("org.GTG", "/org/GTG")
gtg = dbus.Interface(obj, "org.GTG")
for t in gtg.get_tasks():
    print t
    print t["title"]


I get the following traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/local/lib/python2.6/dist-packages/GTG/viewmanager/dbuswrapper.py", line 74, in get_tasks
    return [self.get_task(id) for id in self.get_task_ids(u"Active")]
  File "/usr/local/lib/python2.6/dist-packages/GTG/viewmanager/dbuswrapper.py", line 63, in get_task_ids
    return self.req.get_tasks_list(status = status)
AttributeError: 'Requester' object has no attribute 'get_tasks_list'


This same code used to work since version 649 (fixed by Luca).





Follow ups

References