Commit 9912c8ab authored by Evan Simpson's avatar Evan Simpson

Make complex_marshal iterate in reverse order, so that lists are

handled correctly.
parent d96ccfb3
......@@ -84,8 +84,8 @@
##############################################################################
__doc__='''Zope-specific versions of ZTUTils classes
$Id: Zope.py,v 1.3 2001/08/16 17:42:53 evan Exp $'''
__version__='$Revision: 1.3 $'[11:-2]
$Id: Zope.py,v 1.4 2001/09/24 20:13:14 evan Exp $'''
__version__='$Revision: 1.4 $'[11:-2]
import sys, cgi, urllib, cgi
from Tree import encodeExpansion, decodeExpansion, TreeMaker
......@@ -292,8 +292,9 @@ def complex_marshal(pairs):
addition to their simple marshal string. Dictionaries will be
flattened and marshalled using ":record".
'''
for i in range(len(pairs)):
i = len(pairs)
while i > 0:
i = i - 1
k, v = pairs[i]
m = ''
sublist = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment