Trying to add a custom widget to Task Editor by a plugin gives error

Bug #1242083 reported by Parin Porecha on 2013-10-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
High
Parin Porecha

Bug Description

Hamster plugin tries to add a custom widget to the Task Editor to show activity details of a task,
Opening the task editor results in the following traceback -

Traceback (most recent call last):
  File "/home/manhattan/GTG/trunk/GTG/gtk/browser/browser.py", line 1016, in on_edit_active_task
    self.vmanager.open_task(tid)
  File "/home/manhattan/GTG/trunk/GTG/gtk/manager.py", line 189, in open_task
    clipboard=self.clipboard)
  File "/home/manhattan/GTG/trunk/GTG/gtk/editor/editor.py", line 168, in __init__
    self.pengine.onTaskLoad(self.plugin_api)
  File "/home/manhattan/GTG/trunk/GTG/core/plugins/engine.py", line 261, in onTaskLoad
    plugin.instance.onTaskOpened(plugin_api)
  File "/home/manhattan/GTG/trunk/GTG/plugins/hamster/hamster.py", line 307, in onTaskOpened
    self.vbox = plugin_api.add_widget_to_taskeditor(vbox)
  File "/home/manhattan/GTG/trunk/GTG/core/plugins/api.py", line 182, in add_widget_to_taskeditor
    self.taskwidget_id += 1
AttributeError: PluginAPI instance has no attribute 'taskwidget_id'

Parin Porecha (parinporecha) wrote :

Tested on GTG 0.3 rev1317

Changed in gtg:
milestone: none → 0.3.1
Parin Porecha (parinporecha) wrote :

Fixed in revision 1318

Changed in gtg:
status: New → Fix Committed
Nimit Shah (nimit-svnit) on 2013-11-25
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers