GTG

gtg crashed with AttributeError in checkTomboyPresent(): pluginTomboy instance has no attribute 'plugin_api'

Bug #1024942 reported by Alexander Schlarb
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Izidor Matušov

Bug Description

Steps to reproduce:
1, Make sure the system doesn't have Tomboy/Gnote
2, Start GTG, Enable Tomboy Plugin
3, Open a new task. Because the system doesn't have any Tomboy/Gnote, GTG attempts to show an error message (No Tomboy/Gnote). Plugin_api is not set and the traceback is raised.

<traceback>
Traceback (most recent call last):
  File "/usr/share/gtg/GTG/gtk/browser/browser.py", line 1039, in on_add_task
    self.vmanager.open_task(uid,thisisnew=True)
  File "/usr/share/gtg/GTG/gtk/manager.py", line 177, in open_task
    clipboard = self.clipboard)
  File "/usr/share/gtg/GTG/gtk/editor/editor.py", line 160, in __init__
    self.pengine.onTaskLoad(self.plugin_api)
  File "/usr/share/gtg/GTG/core/plugins/engine.py", line 252, in onTaskLoad
    plugin.instance.onTaskOpened(plugin_api)
  File "/usr/share/gtg/GTG/plugins/tomboy/tomboy.py", line 162, in onTaskOpened
    if not self.checkTomboyPresent() or not plugin_api.is_editor():
  File "/usr/share/gtg/GTG/plugins/tomboy/tomboy.py", line 75, in checkTomboyPresent
    self.plugin_api.get_ui().get_window(),
AttributeError: pluginTomboy instance has no attribute 'plugin_api'
</traceback>

Reason:
self.plugin_api is initialized after calling self.checkTomboyPresent(). However, it needs self.plugin_api for showing the error message.

Revision history for this message
Alexander Schlarb (alexander255) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Changed in gtg (Ubuntu):
importance: Undecided → Medium
Izidor Matušov (izidor)
affects: gtg (Ubuntu) → gtg
Revision history for this message
Izidor Matušov (izidor) wrote :

I can confirm this bug.

Changed in gtg:
status: New → Triaged
importance: Medium → High
assignee: nobody → Izidor Matušov (izidor)
milestone: none → 0.3
Izidor Matušov (izidor)
description: updated
Revision history for this message
Izidor Matušov (izidor) wrote :

Bug was solved in trunk in rev. 1209.

Changed in gtg:
status: Triaged → Fix Committed
Changed in gtg (Ubuntu):
status: New → Confirmed
Revision history for this message
Izidor Matušov (izidor) wrote :

I am providing a patch against GTG 0.2.9 suitable for distribution in Ubuntu.

tags: added: patch toreview
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "bug1024942.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Izidor Matušov (izidor)
no longer affects: gtg (Ubuntu)
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.