dabo Commit
Revision 5610
Date: 2010-01-31 05:18:05 -0800 (Sun, 31 Jan 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5610

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Error message threw its own error if used with compound keys, so wrapping with 
str() is necessary. Trac #1331


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2010-01-30 22:09:11 UTC (rev 5609)
+++ trunk/dabo/biz/dBizobj.py   2010-01-31 13:18:05 UTC (rev 5610)
@@ -1238,7 +1238,8 @@
                row = self.seek(pk, self.KeyField, caseSensitive=True, 
near=False,
                                runRequery=True)
                if row == -1:
-                       raise dabo.dException.RowNotFoundException, _("PK Value 
%s not found in the dataset") % pk
+                       # Need to use str(pk) because pk might be a tuple.
+                       raise dabo.dException.RowNotFoundException, _("PK Value 
'%s' not found in the dataset") % str(pk)
 
 
        def seek(self, val, fld=None, caseSensitive=False, near=False, 
runRequery=True):



_______________________________________________
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]

Reply via email to