[ZPT] CVS: Packages/ZTUtils - Zope.py:1.4

Evan Simpson evan@zope.com
Mon, 24 Sep 2001 16:13:14 -0400


Update of /cvs-repository/Packages/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv15335

Modified Files:
	Zope.py 
Log Message:
Make complex_marshal iterate in reverse order, so that lists are
handled correctly.


=== Packages/ZTUtils/Zope.py 1.3 => 1.4 ===
     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