error in represent list:string fixed

This commit is contained in:
Massimo DiPierro
2012-03-21 07:11:31 -05:00
parent 6270d119c2
commit ebe94f76d3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-03-20 20:28:56) dev
Version 1.99.7 (2012-03-21 07:11:29) dev
+2 -2
View File
@@ -1444,8 +1444,8 @@ class BaseAdapter(ConnectionPool):
if not obj:
obj = []
elif not isinstance(obj, (list, tuple)):
obj = [int(obj)]
elif fieldtype.startswith('list:string'):
obj = [obj]
if fieldtype.startswith('list:string'):
obj = [str(item) for item in obj]
else:
obj = [int(item) for item in obj]