Well I did some more research. The problem is in ClassDesignerComponents.py line 212, classDict is none because isClass evaluates to False in line 45. We don't set classDict in the coresponding else statement so but there is the possibility insideClass will be true. Somewhere we need to set the classDict variable, I am just not sure where or what to.
Nate L. On Thu, Jun 12, 2008 at 4:37 PM, Nate Lowrie <[EMAIL PROTECTED]> wrote: > > I added a dComboBox to a Panel class, set expand to false, and tried > to save it. I got this traceback: > > Traceback (most recent call last): > File > "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dMenuItem.py" > , line 55, in __onWxHit > self.raiseEvent(dEvents.Hit, evt) > File > "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py" > , line 917, in raiseEvent > super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) > File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\lib\eventMixin.py", > l > ine 92, in raiseEvent > bindingFunction(event) > File "ClassDesigner.py", line 1670, in onSaveDesign > self.wrapSave(self.CurrentForm.onSaveDesign, evt) > File "ClassDesigner.py", line 1798, in wrapSave > func(*args, **kwargs) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerFormMixin > .py", line 469, in onSaveDesign > propDict = propDictCompare = self.getClassDesignerDict(obj) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerFormMixin > .py", line 639, in getClassDesignerDict > ret = obj.getDesignerDict(classID=seed, propsToExclude=propsToExclude) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 226, in getDesignerDict > ret["children"] = self.getChildrenPropDict(classDict) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 425, in getChildrenPropDict > ret.append(sz.getDesignerDict(itemNum=len(ret), classDict=szDict)) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 226, in getDesignerDict > ret["children"] = self.getChildrenPropDict(classDict) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 1016, in getChildrenPropDict > classDict=winDict) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 506, in getDesignerDict > classID=classID, classDict=classDict) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 212, in getDesignerDict > itmDiffProps = self._diffSizerItemProps(itmProps, classDict, direct=True) > File > "C:\Python25\Lib\site-packages\dabo-full\trunk\ide\ClassDesignerComponent > s.py", line 242, in _diffSizerItemProps > defaults["Expand"] = True > TypeError: 'NoneType' object does not support item assignment > > Platform: Win > Python Version: 2.5.2 on win32 > Dabo Version: Version 0.8.4; Revision 4125:4129 > UI Version: 2.8.7.1 on wxMSW _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
