possibly fixed issue 614?

This commit is contained in:
Massimo Di Pierro
2012-01-16 21:51:50 -06:00
parent 74ccb85ed9
commit 2a038a0679
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-01-16 21:46:16) stable
Version 1.99.4 (2012-01-16 21:51:43) stable
+4 -4
View File
@@ -1461,12 +1461,12 @@ class BaseAdapter(ConnectionPool):
pass
if isinstance(value, unicode):
value = value.encode('utf-8')
if isinstance(field_type, SQLCustomType):
elif isinstance(field_type, SQLCustomType):
value = field_type.decoder(value)
elif not isinstance(field_type, str) or value is None:
return value
if field_type in ('string', 'text', 'password', 'upload'):
if not isinstance(field_type, str) or value is None:
return value
elif field_type in ('string', 'text', 'password', 'upload'):
return value
else:
key = regex_type.match(field_type).group(0)
return self.parsemap[key](value,field_type)