andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

Enable/disable plugins fails #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Preferences > Plugins
2. deselect library plugin or select and download e.g. SQL Formatter Plugin

What is the expected output? What do you see instead?
Plugins should load/unload correctly. 

With rev136 the return value of CFApplication.get_data("instances") has
changed.

Traceback:

Traceback (most recent call last):
  File "/storage/devel2/cf/trunk/cf/plugins/core.py", line 333, in refresh
    self.set_active(plugin, False)
  File "/storage/devel2/cf/trunk/cf/plugins/core.py", line 371, in set_active
    self.unload_instance_mixins(x, instance)
  File "/storage/devel2/cf/trunk/cf/plugins/core.py", line 423, in
unload_instance_mixins
    plugin.menubar_unload(instance.xml.get_widget("menubar"), instance)
AttributeError: 'long' object has no attribute 'xml'

Original issue reported on code.google.com by albrecht.andi on 27 Mar 2008 at 2:33

GoogleCodeExporter commented 9 years ago
Fixed in rev.147

Original comment by albrecht.andi on 27 Mar 2008 at 4:00