Author: johannes
Date: 2006-03-20 06:21:38 -0600 (Mon, 20 Mar 2006)
New Revision: 8241
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Don't use str () to convert values to string (as this breaks for unicode
characters)
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-03-18 05:39:59 UTC (rev
8240)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-03-20 12:21:38 UTC (rev
8241)
@@ -939,7 +939,7 @@
conditions = []
# Get all the user-supplied parameters from the entry widgets
for entry, val in block._queryValues.items ():
- if entry._bound and entry.isQueryable () and len (str (val)):
+ if entry._bound and entry.isQueryable () and len (("%s" % val)):
# New : operator support
match = False
@@ -967,7 +967,7 @@
if entry.typecast == 'text':
if block._convertAsterisksToPercent:
try:
- val = str (val).replace ('*', '%')
+ val = ("%s" % val).replace ('*', '%')
except ValueError:
pass
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue