On Wednesday, April 25, 2012 12:52:38 PM Ed Leafe wrote:
> dabo Commit
> Revision 7144
> Date: 2012-04-25 12:52:38 -0700 (Wed, 25 Apr 2012)
> Author: Ed
> Trac: http://trac.dabodev.com/changeset/7144
This commit breaks my code where there is no data available at init. You may
recall that I open my forms without any data and request the user to enter a
filtering bit of data such as customer etc...
Traceback (most recent call last):
File "pwinbound.py", line 815, in <module>
app.start()
File "/home/johnf/dabo/dabo/dApp.py", line 395, in start
self.setup()
File "/home/johnf/dabo/dabo/dApp.py", line 347, in setup
self.initUIApp()
File "/home/johnf/dabo/dabo/dApp.py", line 387, in initUIApp
self.uiApp.setup()
File "/home/johnf/dabo/dabo/ui/uiwx/uiApp.py", line 431, in setup
frm = self.dApp.MainForm = mfc()
File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 1062, in __init__
*args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 49, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dFormMixin.py", line 77, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__
self._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 76, in _afterInit
super(BaseForm, self)._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dFormMixin.py", line 131, in _afterInit
super(dFormMixin, self)._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit
self.afterInit()
File "pwinbound.py", line 475, in afterInit
vs.append(MainPanelFrames(self),0,'x')
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 267, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 245, in __init__
properties=properties, attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 35, in __init__
properties=properties, attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__
self._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit
self.afterInit()
File "pwinbound.py", line 393, in afterInit
pgf.appendPage(pgCls=InboundPanel, caption="Inbound")
File "/home/johnf/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 178, in
appendPage
return self.insertPage(self.GetPageCount(), pgCls, caption, imgKey,
**kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 211, in
insertPage
pg = pgCls(self, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 267, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 245, in __init__
properties=properties, attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 35, in __init__
properties=properties, attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__
self._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit
self.afterInit()
File "pwinbound.py", line 311, in afterInit
prod_grid = InboundGrid(self)
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1892, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__
self._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1943, in _afterInit
super(dGrid, self)._afterInit()
File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit
self.afterInit()
File "pwinbound.py", line 234, in afterInit
Sortable=True, Searchable=False, Editable=False, Expand=False,
HorizontalAlignment = 'Center')
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 486, in __init__
*args, **kwargs)
File "/home/johnf/dabo/dabo/dObject.py", line 101, in __init__
self.setProperties(properties)
File "/home/johnf/dabo/dabo/lib/propertyHelperMixin.py", line 217, in
setProperties
_setProps(propDict)
File "/home/johnf/dabo/dabo/lib/propertyHelperMixin.py", line 206, in
_setProps
setter(self, _propDict[prop])
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1048, in _setDataField
self._updateRenderer()
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 802, in _updateRenderer
self._setRenderer()
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 572, in _setRenderer
typ = type(self.Value)
File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1427, in _getValue
return biz.getFieldVal(self.DataField)
File "/home/johnf/dabo/dabo/biz/dBizobj.py", line 1951, in getFieldVal
ret = self._CurrentCursor.getFieldVal(fld, row,
_rowChangeCallback=changeRowNumCallback)
File "/home/johnf/dabo/dabo/db/dCursorMixin.py", line 889, in getFieldVal
_("No records in dataset '%s'.") % self.Table)
dabo.dException.NoRecordsException: No records in dataset
'warehouse.pwprodct'.
Johnf
_______________________________________________
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/9095788.Mq5tn0FyON@linux-12