dabo Commit
Revision 5304
Date: 2009-07-29 20:46:21 -0700 (Wed, 29 Jul 2009)
Author: Johnf
Trac: http://trac.dabodev.com/changeset/5304
Changed:
U trunk/dabo/ui/uiwx/dMaskedTextBox.py
Log:
Discovered that the contol was not clearing the value when getValue = None or
empty (''). Fixed appears to work very well with all the data types. As
always if anyone discovers a bug please post it.
Diff:
Modified: trunk/dabo/ui/uiwx/dMaskedTextBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dMaskedTextBox.py 2009-07-24 17:44:02 UTC (rev
5303)
+++ trunk/dabo/ui/uiwx/dMaskedTextBox.py 2009-07-30 03:46:21 UTC (rev
5304)
@@ -159,6 +159,7 @@
def _getUnmaskedValue(self):
ret =self.GetPlainValue()
if ret is None or ret=='':
+ self.ClearValue()
ret = self.MaskedValue
return ret
@@ -171,12 +172,16 @@
ret = self.GetPlainValue()
#add this to cover blank or None for field values
if ret is None or ret=='':
+ self.ClearValue()
ret= self.MaskedValue #I believe every val has
a mask??
return ret
def _setValue(self, val):
# added below to cover blank or None for field values
+ if self.RegID == 'txtConFax':
+ pass
if val is None or val =='':
+ self.ClearValue()
val=self.MaskedValue
super(dMaskedTextBox, self)._setValue(val)
_______________________________________________
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]