changeset 2806:f86a1c914069

1.6 converter: sort rename map
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Sep 2007 21:05:23 +0200
parents f0e5329419f7
children 038db199ca6b
files MoinMoin/script/migration/_conv160.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160.py	Sat Sep 08 20:26:57 2007 +0200
+++ b/MoinMoin/script/migration/_conv160.py	Sat Sep 08 21:05:23 2007 +0200
@@ -452,8 +452,10 @@
     LIST_FIELDSEP = u'|' # in case | makes trouble, one can use \t tab char
 
     def save_list(self, fname, what):
+        what_sorted = what.keys()
+        what_sorted.sort()
         f = codecs.open(fname, 'w', 'utf-8')
-        for k in what:
+        for k in what_sorted:
             rtype, pn, fn = (k + (None, ))[:3]
             if rtype == 'PAGE':
                 line = (rtype, pn, pn)