← Back to team overview

gtg team mailing list archive

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

 

Hello everybody, I'm one of the GTG devs.
This crash happens only in the trunk version of GTG, because the plugin api is currently broken. That's because we're finishing a big refactoring of GTG core to make it faster and less exposed to bugs (development branch https://code.edge.launchpad.net/~gtg-user/gtg/liblarch_rebased).
In a few weeks everything should return to normal. 
Thanks for the patches!

** Also affects: gtg/trunk
   Importance: Undecided
       Status: Confirmed

** Changed in: gtg/trunk
    Milestone: None => 0.3

** Changed in: gtg/trunk
   Importance: Undecided => High

-- 
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
Status in Getting Things GNOME! trunk series: 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