On 6/22/10 10:18 AM, Paul McNett wrote:
> I'm getting this exception, which has me confused:
>
> """
> Shutter Studio Error Notification
>
> Customer: -----
> License: 5625e940-f433-479f-8c6e-60b726a73882
> User Timestamp: 2010-06-22 14:56:40.187000
> Server Timestamp: 2010-06-22 14:56:37.050059
> Version, Platform: 0.9.42 Windows-XP-5.1.2600
> Exception Object: 'RowNotFoundException' object is not callable
> Exception Type:<type 'exceptions.TypeError'>
> Active Form:<frmProductionOrders (baseclass dabo.ui.dForm, id:-326)>
> Active Control:<grdProductionOrderOpenings (baseclass dabo.ui.dGrid,
> id:-382)>
>
> Traceback (most recent call last):
> File "dabo\ui\uiwx\dMenuItem.pyo", line 57, in __onWxHit
> File "dabo\ui\uiwx\dPemMixin.pyo", line 980, in raiseEvent
> File "dabo\lib\eventMixin.pyo", line 93, in raiseEvent
> File "ui\MenReports.pyo", line 52, in openForm
> File "dabo\ui\uiwx\dDialog.pyo", line 43, in __init__
> File "datanav_additions\FrmReportBase.pyo", line 25, in _addControls
> File "dabo\lib\autosuper\autosuper.pyo", line 176, in __call__
> File "dabo\ui\uiwx\dDialog.pyo", line 114, in _addControls
> File "ui\FrmReportCutsheet.pyo", line 27, in addControls
> File "dabo\lib\autosuper\autosuper.pyo", line 176, in __call__
> File "ui\FrmReportProductionOrderBase.pyo", line 53, in addControls
> File "datanav_additions\PanBrowsePick.pyo", line 241, in _setValue
> File "datanav_additions\TxtLookup.pyo", line 111, in flushValue
> File "datanav_additions\TxtLookup.pyo", line 51, in update
> File "datanav_additions\TxtLookup.pyo", line 63, in updateValues
> File "datanav_additions\TxtLookup.pyo", line 28, in requeryLookup
> File "dabo\biz\dBizobj.pyo", line 993, in requery
> File "dabo\biz\dBizobj.pyo", line 1269, in _positionUsingPK
> File "dabo\biz\dBizobj.pyo", line 1449, in setCurrentParent
> File "dabo\biz\dBizobj.pyo", line 1449, in setCurrentParent
> File "dabo\biz\dBizobj.pyo", line 1442, in setCurrentParent
> File "dabo\biz\dBizobj.pyo", line 1043, in getParentLinkValue
> File "dabo\biz\dBizobj.pyo", line 1553, in getFieldVal
> File "dabo\db\dCursorMixin.pyo", line 845, in getFieldVal
> <type 'exceptions.TypeError'>: 'RowNotFoundException' object is not callable
> """
>
> Here's the relevant area in dCursorMixin.py:
>
> 842 def getFieldVal(self, fld, row=None, _rowChangeCallback=None):
> 843 """Return the value of the specified field in the current or
> specified row."""
> 844 if self.RowCount<= 0:
> 845 raise dException.NoRecordsException(_("No records in the data
> set."))
> 846 if row is None:
> 847 row = self.RowNumber
> 848 try:
> 849 rec = self._records[row]
> 850 except IndexError:
> 851 cnt = len(self._records)
> 852 raise dException.RowNotFoundException(
> 853 _("Row #%(row)s requested, but the data set has only %(cnt)s
> row(s),") % locals())
>
>
> Why would it be referring to 'RowNotFoundException' when the exception being
> raised
> on that line is NoRecordsException?
The other question is, why would it be saying 'RowNotFoundException' object is
not
callable?
Paul
_______________________________________________
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]