[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/src GDataObjects.py
From: |
James Thompson |
Subject: |
gnue/common/src GDataObjects.py |
Date: |
Wed, 09 Jan 2002 08:56:55 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: James Thompson <address@hidden> 02/01/09 08:56:55
Modified files:
common/src : GDataObjects.py
Log message:
Removed loop forever bug in jump to record I introduced yesterday
during debugging (whopps :)
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GDataObjects.py.diff?tr1=1.33&tr2=1.34&r1=text&r2=text
Patches:
Index: gnue/common/src/GDataObjects.py
diff -c gnue/common/src/GDataObjects.py:1.33
gnue/common/src/GDataObjects.py:1.34
*** gnue/common/src/GDataObjects.py:1.33 Tue Jan 8 17:07:58 2002
--- gnue/common/src/GDataObjects.py Wed Jan 9 08:56:55 2002
***************
*** 320,327 ****
# move to record #, returns 1=New record loaded, 0=invalid #
def setRecord(self, record):
! while record - 1 > len(self._cachedRecords):
! self._loadNextRecord()
if record + 1 >= len(self._cachedRecords):
return 0
--- 320,327 ----
# move to record #, returns 1=New record loaded, 0=invalid #
def setRecord(self, record):
! while record - 1 > len(self._cachedRecords) and self._loadNextRecord():
! pass
if record + 1 >= len(self._cachedRecords):
return 0
- gnue/common/src GDataObjects.py,
James Thompson <=