← Back to team overview

gtg team mailing list archive

[Bug 615159] Re: notification plugin crash "no attribute 'get_active_tasks_list'" (with fix)

 

Related bug 529256 initially requesting "active tasks" be re-added back
into the requester.

There's a suggestion there on how the same functionality can be achieved
without it, and this is pretty much what the patch is doing.

It's a trivial patch and looks sane to me (also works just fine when I
apply it). It's also a fairly high priority bug in that, if someone
enables the notification plugin and restarts then GTG no longer works.

GTG Devs: Do you think you could review and commit this?

-- 
notification plugin crash "no attribute 'get_active_tasks_list'" (with fix)
https://bugs.launchpad.net/bugs/615159
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!: Confirmed

Bug description:
Seems like this method has been removed, and the stack trace is:

Traceback (most recent call last):
  File "./gtg", line 66, in <module>
    sys.exit(GTG.gtg.main(options, args))
  File "/home/pi/code/tmp/gtg/trunk/GTG/gtg.py", line 100, in main
    manager = Manager(req, config)
  File "/home/pi/code/tmp/gtg/trunk/GTG/gtk/manager.py", line 75, in __init__
    self.__init_plugin_engine()
  File "/home/pi/code/tmp/gtg/trunk/GTG/gtk/manager.py", line 123, in __init_plugin_engine
    self.pengine.activate_plugins(self.p_apis)
  File "/home/pi/code/tmp/gtg/trunk/GTG/core/plugins/engine.py", line 197, in activate_plugins
    plugin.instance.activate(api)
  File "/home/pi/code/tmp/gtg/trunk/GTG/plugins/notification_area/notification_area.py", line 67, in activate
    self._initialize_automatic_menu()
  File "/home/pi/code/tmp/gtg/trunk/GTG/plugins/notification_area/notification_area.py", line 111, in _initialize_automatic_menu
    task_list = self.requester.get_active_tasks_list(workable = True)
AttributeError: 'Requester' object has no attribute 'get_active_tasks_list'

I implemented a fix for this, but I'm not certain that it was done in the proper way





References