dabo Commit
Revision 7026
Date: 2011-12-15 10:57:52 -0800 (Thu, 15 Dec 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7026
Changed:
U trunk/dabo/dApp.py
U trunk/dabo/ui/uiwx/dNumericBox.py
Log:
Removed unneeded and unused method.
Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2011-12-12 22:57:03 UTC (rev 7025)
+++ trunk/dabo/dApp.py 2011-12-15 18:57:52 UTC (rev 7026)
@@ -855,15 +855,6 @@
return None
- def str2Unicode(self, strVal):
- """
- Given a string, this method will try to return a properly
decoded
- unicode value. It will first try the default Encoding, and then
try the
- more common encoding types.
- """
- return ustr(strVal)
-
-
# These two methods pass encryption/decryption requests
# to the Crypto object
def encrypt(self, val):
Modified: trunk/dabo/ui/uiwx/dNumericBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dNumericBox.py 2011-12-12 22:57:03 UTC (rev 7025)
+++ trunk/dabo/ui/uiwx/dNumericBox.py 2011-12-15 18:57:52 UTC (rev 7026)
@@ -153,6 +153,15 @@
if val is None:
self.SetGroupDigits(False)
else:
+ if ord(val[0]) > 127:
+ # Only ASCII chars allowed
+ dabo.log.error(_("GroupChar must be a
valid ASCII character; "
+ "'%s' is not allowed.")
% val)
+ return
+ if len(val) > 1:
+ dabo.log.error(_("GroupChar must be a
single character; "
+ "attempted to set it to
a string of length %s.") % len(val))
+ return
self.SetGroupChar(val)
self.SetGroupDigits(True)
else:
_______________________________________________
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]