GTG

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

Bug #1242083 reported by Parin Porecha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
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'

Revision history for this message
Parin Porecha (parinporecha) wrote :

Tested on GTG 0.3 rev1317

Changed in gtg:
milestone: none → 0.3.1
Revision history for this message
Parin Porecha (parinporecha) wrote :

Fixed in revision 1318

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.