dabo Commit
Revision 2570
Date: 2006-12-21 04:59:18 -0800 (Thu, 21 Dec 2006)
Author: Paul
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Changed the AttributeError message when querying a cursor's Record object.
I was getting an AttributeError on 'self.cursor.DataSource' because my
code was querying the record object prior to the cursor's DataSource
property even existing.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2006-12-20 22:12:01 UTC (rev 2569)
+++ trunk/dabo/db/dCursorMixin.py 2006-12-21 12:59:18 UTC (rev 2570)
@@ -1918,7 +1918,7 @@
except (dException.dException,
dException.NoRecordsException):
err = True
if err:
- raise AttributeError, _(" '%s'
object has no attribute '%s' ") % (self.cursor.DataSource, att)
+ raise AttributeError, _("Record
has no field '%s'") % att
return ret
def __setattr__(self, att, val):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev