This commit is contained in:
Massimo
2012-09-25 14:50:32 -05:00
parent 722b16e620
commit 1430bc824f
6 changed files with 54 additions and 34 deletions
+6 -4
View File
@@ -325,10 +325,12 @@ def parse_get_post_vars(request, environ):
dpk = dpost[key]
# if en element is not a file replace it with its value else leave it alone
if isinstance(dpk, list):
if not dpk[0].filename:
value = [x.value for x in dpk]
else:
value = [x for x in dpk]
value = []
for _dpk in dpk:
if not _dpk.filename:
value.append(_dpk.value)
else:
value.append(_dpk)
elif not dpk.filename:
value = dpk.value
else: