Make string param boolean

This commit is contained in:
Ruud
2013-06-30 15:20:02 +02:00
parent 74bf6bc411
commit 58c446de2d
+2
View File
@@ -32,6 +32,8 @@ def getParams(params):
current = current[item]
else:
temp[param] = toUnicode(unquote(value))
if temp[param].lower() in ['true', 'false']:
temp[param] = temp[param].lower() != 'false'
return dictToList(temp)