Hi Luca,

yes the code works with gtg/0.2

are you saying that the dbuswrapper between 0.2 and the trunk has/will
change radically?

If so when is the trunk going to become mainstream?

The cairo-dock project was asked to write an applet for GTG and this is what
I am doing but on which version should I do it?

Will I have to rewrite my code eventually?


On Tue, Mar 9, 2010 at 3:42 PM, Luca Invernizzi
<[email protected]>wrote:

> 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 direct subscriber
> of the bug.
>

-- 
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).



_______________________________________________
Mailing list: https://launchpad.net/~gtg
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gtg
More help   : https://help.launchpad.net/ListHelp

Reply via email to