1. Roger Haase
  2. moin-2.0


Thomas Waldmann  committed 5eaa575

import19: fix code that was forgotten in last refactoring

  • Participants
  • Parent commits 063c879
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/script/migration/moin19/import19.py

View file
                                      # if we have an entry there
-                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: