dabo Commit
Revision 6372
Date: 2011-02-01 17:48:28 -0800 (Tue, 01 Feb 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6372

Changed:
U   trunk/dabo/ui/dDataControlMixinBase.py

Log:
My recent changes to not catch exceptions in biz.setFieldVal() resulted
in errors in flushValue(). Catch the exception there and pass.


Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py      2011-02-02 00:56:01 UTC (rev 
6371)
+++ trunk/dabo/ui/dDataControlMixinBase.py      2011-02-02 01:48:28 UTC (rev 
6372)
@@ -234,6 +234,10 @@
                                                        method = 
getattr(self.Source, self.DataField, None)
                                                        if method is None:
                                                                raise
+                                               except 
(dException.NoRecordsException, dException.RowNotFoundException):
+                                                       # UI called 
flushValue() when there wasn't a valid record active. 
+                                                       # Treat as spurious and 
ignore.
+                                                       pass
                                        else:
                                                # If the binding is to a 
method, do not try to assign to that method.
                                                if self._srcIsInstanceMethod is 
None:



_______________________________________________
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