View Issue Details

IDProjectCategoryView StatusLast Update
0000389ascendpygtk guipublic2009-05-06 13:16
Reportermahesh 
Assigned Tojohn 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.9.5.116 
Target VersionFixed in Version 
Summary0000389: PyGTK Error when I click Preferences under Edit
DescriptionWhen I clicked the edit->preferences in the menu, I got this error. I am not sure if it applies only to me (may be some missing libraries)

Traceback (most recent call last):
  File "pygtk/gtkbrowser.py", line 1044, props_activate(self=<gtkbrowser.Browser instance at 0xb6a555ec>, widget=<gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>, *args=())
      def props_activate(self,widget,*args):
        return self.modelview.props_activate(self,widget,*args)
  variables: {'self.modelview.props_activate': ('local', <bound method ModelView.props_activate of <modelview.ModelView instance at 0x994b1ac>>), 'self': ('local', <gtkbrowser.Browser instance at 0xb6a555ec>), 'args': ('local', None), 'widget': ('local', <gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>)}
  File "pygtk/modelview.py", line 474, props_activate(self=<modelview.ModelView instance at 0x994b1ac>, widget=<gtkbrowser.Browser instance at 0xb6a555ec>, *args=(<gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>,))
        _path,_col = self.modelview.get_cursor()
        _instance = self.otank[_path][1]
        if _instance.isRelation():
  variables: {'_path': ('local', None), 'self.otank': ('local', <modelview.ModelView instance at 0x994b1ac>), '_instance': (None, None)}
KeyError: None
TagsNo tags attached.

Relationships

Activities

john

2009-05-05 16:18

administrator   ~0000514

Mahesh, can you provide more information to allow the bug to be reproduced? Start with "load file XXXX, then do YYYY, then do ZZZZ...."

mahesh

2009-05-06 12:48

manager   ~0000516

* Start ASCEND

* EDIT-> Preferences (I want to checkout various program prefs)

* I get the error message

Traceback (most recent call last):
  File "pygtk/gtkbrowser.py", line 1044, props_activate(self=<gtkbrowser.Browser instance at 0xb6a555ec>, widget=<gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>, *args=())
      def props_activate(self,widget,*args):
        return self.modelview.props_activate(self,widget,*args)
  variables: {'self.modelview.props_activate': ('local', <bound method ModelView.props_activate of <modelview.ModelView instance at 0x994b1ac>>), 'self': ('local', <gtkbrowser.Browser instance at 0xb6a555ec>), 'args': ('local', None), 'widget': ('local', <gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>)}
  File "pygtk/modelview.py", line 474, props_activate(self=<modelview.ModelView instance at 0x994b1ac>, widget=<gtkbrowser.Browser instance at 0xb6a555ec>, *args=(<gtk.ImageMenuItem object at 0x9d3f2ac (GtkImageMenuItem at 0x99a19c0)>,))
        _path,_col = self.modelview.get_cursor()
        _instance = self.otank[_path][1]
        if _instance.isRelation():
  variables: {'_path': ('local', None), 'self.otank': ('local', <modelview.ModelView instance at 0x994b1ac>), '_instance': (None, None)}
KeyError: None


Even if I have to load a file before clicking on Edit-> Preferences, I should get a warning message is what I feel.

john

2009-05-06 13:16

administrator   ~0000518

The above changeset 2269 should have fixed this problem. You might not have noticed, but the menu says "Properties" rather than "Preferences". There is currently no GUI for setting user preferences all in one place. Note that there is a file "~/.ascend.ini" which you can take a look at, and there is also some kind of preferences mechanism implemented in the preferences.py code.

Issue History

Date Modified Username Field Change
2009-05-05 12:20 mahesh New Issue
2009-05-05 12:20 mahesh Status new => assigned
2009-05-05 12:20 mahesh Assigned To => john
2009-05-05 16:18 john Note Added: 0000514
2009-05-06 12:48 mahesh Note Added: 0000516
2009-05-06 13:09 svn
2009-05-06 13:09 svn Status assigned => resolved
2009-05-06 13:09 svn Resolution open => fixed
2009-05-06 13:16 john Note Added: 0000518