Changeset 3068

Show
Ignore:
Timestamp:
04/19/07 03:14:28 (2 years ago)
Author:
ed
Message:

This fixes the problem described in Ticket #[1049]: cancel() wasn't working anymore. An improper mix of the cursor key and the cursor PK was the cause.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/biz/dBizobj.py

    r3054 r3068  
    604604        """ 
    605605        self.exitScan = False 
     606        currCursor = self._CurrentCursor 
    606607        old_currentCursorKey = self.__currentCursorKey 
    607608        try: 
    608             old_pk = self._CurrentCursor.getPK() 
     609            old_pk = currCursor.getPK() 
    609610        except dException.NoRecordsException: 
    610611            # no rows to scan 
     
    614615            cursors = self.__cursors 
    615616        else: 
    616             cursors = {old_pk: self._CurrentCursor} 
     617            cursors = {old_currentCursorKey: currCursor} 
    617618 
    618619        for key, cursor in cursors.iteritems():