dabo Commit
Revision 5614
Date: 2010-01-31 13:03:20 -0800 (Sun, 31 Jan 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5614
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
If a filter() call filters out all records, a NoRecordsException was being
raised. This is generally not necessary, so this is now caught. Trac #1331
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2010-01-31 17:10:49 UTC (rev 5613)
+++ trunk/dabo/biz/dBizobj.py 2010-01-31 21:03:20 UTC (rev 5614)
@@ -1077,7 +1077,11 @@
self.moveToPK(currPK)
except dabo.dException.RowNotFoundException:
# The old row was filtered out of the dataset
- self.first()
+ try:
+ self.first()
+ except dException.NoRecordsException:
+ # All records were filtered out
+ pass
def filterByExpression(self, expr):
_______________________________________________
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]