changeset 1886:5eaa575bf13a

import19: fix code that was forgotten in last refactoring
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Dec 2012 15:50:53 +0100
parents 063c879ef79b
children 4fd856db8a4b
files MoinMoin/script/migration/moin19/import19.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/moin19/import19.py	Sat Dec 22 15:49:40 2012 +0100
+++ b/MoinMoin/script/migration/moin19/import19.py	Sat Dec 22 15:50:53 2012 +0100
@@ -228,7 +228,8 @@
                                      # if we have an entry there
                    }
             try:
-                previous_meta = PageRevision(item, revno-1)._fs_meta
+                revpath = os.path.join(item.path, 'revisions', '{0:08d}'.format(revno-1))
+                previous_meta = PageRevision(item, revno-1, revpath).meta
                 # if this page revision is deleted, we have no on-page metadata.
                 # but some metadata is required, thus we have to copy it from the
                 # (non-deleted) revision revno-1: