gtg team mailing list archive
-
gtg team
-
Mailing list archive
-
Message #01688
[Bug 541943] Re: Error in new_task of requeseter.py when adding tasks with tags
Actually, the bug was in dbuswrapper.py (it should have passed the tag object instead of a string).
Since GTG is moving toward always passing strings instead of objects (it's faster and clearer from the developer POV), I've applied your patch and converted all GTG code to the new standard. Nice work!
--
Error in new_task of requeseter.py when adding tasks with tags
https://bugs.launchpad.net/bugs/541943
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!: In Progress
Bug description:
When adding a task with a tag via dbus there is the following error:
org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/hmi/gtg/GTG/core/dbuswrapper.py", line 107, in new_task
nt = self.req.new_task(tags=tags)
File "/hmi/gtg/GTG/core/requester.py", line 90, in new_task
task.tag_added(t.get_name())
AttributeError: 'dbus.String' object has no attribute 'get_name'
I done a patch for it.
References