One of my customers got this:

Traceback (most recent call last):
   File "dabo\ui\uiwx\dControlMixin.pyc", line 27, in _onWxHit
   File "dabo\ui\uiwx\dPemMixin.pyc", line 940, in raiseEvent
   File "dabo\lib\eventMixin.pyc", line 93, in raiseEvent
   File "dabo\ui\uiwx\dDialog.pyc", line 382, in _onOK
   File "ui\DlgEditProductionOrderOpening.pyc", line 381, in runOK
   File "dabo\lib\autosuper\autosuper.pyc", line 176, in __call__
   File "ss_common\ui\DlgEditBase.pyc", line 21, in runOK
   File "dabo\biz\dBizobj.pyc", line 423, in save
   File "dabo\biz\dBizobj.pyc", line 358, in saveAll
   File "dabo\biz\dBizobj.pyc", line 772, in scanChangedRows
   File "dabo\biz\dBizobj.pyc", line 1091, in _moveToRowNum
   File "dabo\db\dCursorMixin.pyc", line 1755, in moveToRowNum
<class 'dabo.dException.dException'>: Invalid row specified: None. RowCount=3

But I don't understand how None could have gotten into the list of row numbers 
that 
are changed. scanChangedRows() has this code:

  770       changedRows = self.getChangedRows(includeNewUnchanged)
  771       for row in sorted(changedRows, reverse=True):
  772         self._moveToRowNum(row)

... and it is the line 772 that eventually causes the traceback, because one of 
the 
rows in sorted(changedRows) is None, instead of a valid row number.

I'm unable to reproduce this error.

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]

Reply via email to