dabo Commit
Revision 5254
Date: 2009-06-19 09:11:02 -0700 (Fri, 19 Jun 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5254
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
When restoring a value on a listbox, ignore "string not present in the choices".
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2009-06-18 20:42:04 UTC (rev
5253)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2009-06-19 16:11:02 UTC (rev
5254)
@@ -284,7 +284,7 @@
if value is not None:
try:
self.Value = value
- except TypeError:
+ except (ValueError, TypeError):
self.Value = self.getBlankValue()
_______________________________________________
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]