On 1/17/06, rick <[EMAIL PROTECTED]> wrote: > > Alright, this is definetely a bug. > > I am running a simple SQLObject.select() call to gather all items in a > table. > When removing the items: > > choiceTable = Country.select() > for obj in choiceTable: > > or > > for obj in list(choiceTable): > > iterates through all of the records PAST THE END and obviously the > attempt to reference the obj after that meets with disaster. > > l = v.choiceTable.count() > print str(l) + " records" > for i in range(l): > obj = v.choiceTable[i] > > This works.
Of course, that probably runs a lot of queries. I'd recommend mentioning this on the sqlobject list. If you're able to provide them with a test case, this would likely get fixed quickly. Kevin

