MatthewASimonson / r-orange

Automatically exported from code.google.com/p/r-orange
Other
0 stars 0 forks source link

Esoteric Signal Classes Don't load #510

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a signal class that requires class as well as data to be supplied.  
Reload doesn't know about classes so the loading fails.  I'll try to fix this.

############################################################
Unhandled exception of type TypeError occured at 2011-05-02 16:14:53.108000:
Traceback:
  File: widgetSession.py, line 242 in setSignalClass
  Code: var = varc(widget = self, data = d['data'])
    TypeError: __init__() takes at least 4 non-keyword arguments (3 given) 
############################################################

REDRCORE:ERROR : File 
"C:\Python26\Lib\site-packages\RedRTrunk\canvas\widgetSession.py", line 170, in 
setSettings var = self.setSignalClass(sentItemDict) || 

############################################################
Unhandled exception of type KeyError occured at 2011-05-02 16:14:53.122000:
Traceback:
  File: widgetSession.py, line 255 in setSignalClass
  Code: for mod in val['class'].split('.')[1:]:
    KeyError: 'class' 
############################################################

Original issue reported on code.google.com by kylecovi...@gmail.com on 2 May 2011 at 9:27

GoogleCodeExporter commented 9 years ago
Convention should be to set a default for everything but data.  Widget will 
just have to accept that there may be no data in some slots if something 
terrible happens.

Original comment by kylecovi...@gmail.com on 3 May 2011 at 3:56