On Dec 11, 2007, at 11:18 PM, Lukasz Szybalski wrote:
> File "/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
> biz/dBizobj.py",
> line 715, in scanChangedRows
> self._moveToRowNum(row)
> File "/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
> biz/dBizobj.py",
> line 978, in _moveToRowNum
> self._CurrentCursor.moveToRowNum(rownum)
> File "/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
> db/dCursorMixin.py",
> line 1521, in moveToRowNum
> raise dException.dException, _("Invalid row specified.")
> dabo.dException.dException: Invalid row specified.
OK, I need your help to debug this. Open your dBizobj.py file (the
one in '/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
biz/dBizobj.py') in any plain text editor, and add the one debugging
statement after line 713 so that your code looks like:
711 for key, cursor in cursors.iteritems():
712 self._CurrentCursor = key
713 changedRows = self.getChangedRows(includeNewUnchanged)
print "CHANGED", changedRows
714 for row in changedRows:
715 self._moveToRowNum(row)
716 try:
717 func(*args, **kwargs)
718 except:
719 # Reset things and bail:
720 self._CurrentCursor =
old_currentCursorKey
721 self._positionUsingPK(old_pk)
722 raise
Run the app the same way again, and then post the debug output you get.
> I closed it and tried again and I got
>
[snip]
> File "/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
> db/dCursorMixin.py",
> line 1226, in __saverow
> self.BackendObject.noResultsOnSave()
> File "/usr/lib/python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/
> db/dBackend.py",
> line 114, in noResultsOnSave
> raise dException.dException, _("No records updated")
> dabo.dException.dException: No records updated
OK, again I'll need some debugging help. This time open /usr/lib/
python2.4/site-packages/Dabo-0.8.3-py2.4.egg/dabo/db/dCursorMixin.py,
and add the debugging line after line 1210:
1208 #run the update
1209 aux = self.AuxCursor
1210 res = aux.execute(sql)
print "SAVEROW", res, sql
My guess is that it is not forming the SQL statement properly, but
I'll need to see your output to be sure.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]