Commits

Andreas Kloeckner  committed a451feb

Set item types in 1.9 import.

  • Participants
  • Parent commits 091125c

Comments (0)

Files changed (1)

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

 
 from MoinMoin.constants.keys import *
 from MoinMoin.constants.contenttypes import CONTENTTYPE_USER
+from MoinMoin.constants.itemtypes import ITEMTYPE_DEFAULT
 from MoinMoin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES
 
 UID_OLD = 'old_user_id'  # dynamic field *_id, so we don't have to change schema
         meta[ITEMID] = itemid
         meta[REVID] = make_uuid()
         meta[NAMESPACE] = NAMESPACE_DEFAULT
+        meta[ITEMTYPE] = ITEMTYPE_DEFAULT
         self.meta = {}
         for k, v in meta.iteritems():
             if isinstance(v, list):
         meta[SIZE] = size
         meta[ITEMID] = make_uuid()
         meta[REVID] = make_uuid()
+        meta[ITEMTYPE] = ITEMTYPE_DEFAULT
         self.meta = meta