On Tue, Mar 09, 2010 at 09:02:46PM -0000, Philippe Le Toquin wrote: > 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?
The entire core of gtg has changed between 0.2.x and the 0.3-trunk (thus the number change). I think the issue is that the dbus implementation needs to be updated to work with the new core code. I don't know if there are plans on changing the gtg dbus api itself, but I don't think the api is advertised as being stable yet, so it would not surprise me if there are some api changes before 0.3.0 is released. > If so when is the trunk going to become mainstream? A release date for 0.3 is not established (the gtg project does not adhere to a time-based roadmap at this stage). A fair number of critical regressions exist in 0.3 that will need solved before a release can be considered, but development is at a lull at the moment. I would not expect to see a 0.3.0 release for a few months at least. > 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? I would suggest coding this applet to the lp:gtg/2.0 branch. > Will I have to rewrite my code eventually? I would doubt the gtg dbus api would change so drastically that it would necessitate a rewrite, but you might want to plan on re-checking in a few months if any updates are needed to ensure it's compatible with 0.3. -- 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!: Invalid 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

