def test_migrate_function(self):
     from plone.app.contenttypes.migration.migration import migrate
     from plone.app.contenttypes.migration.migration import DocumentMigrator
     self.portal.invokeFactory('Document', 'document')
     applyProfile(self.portal, 'plone.app.contenttypes:default')
     migrate(self.portal, DocumentMigrator)
     dx_document = self.portal["document"]
     self.assertEqual(dx_document.meta_type, 'Dexterity Item')
Exemple #2
0
def migrate_from_pa_event(context):
    loadMigrationProfile(context, 'profile-osha.hwccontent:default')
    # Re-import types to get newest Event type
    context.runImportStepFromProfile(
        'profile-osha.hwccontent:default',
        'typeinfo',
    )
    portal = context.getParentNode()
    migrate(portal, DXEventMigrator)
Exemple #3
0
def migrate_from_pa_event(context):
    loadMigrationProfile(context, 'profile-osha.hwccontent:default')
    # Re-import types to get newest Event type
    context.runImportStepFromProfile(
        'profile-osha.hwccontent:default',
        'typeinfo',
    )
    portal = context.getParentNode()
    migrate(portal, DXEventMigrator)
Exemple #4
0
def migrate_folderishnewsitems(portal):
    return migrate(portal, FolderishNewsItemMigrator)
Exemple #5
0
def migrate_folderishevents(portal):
    return migrate(portal, FolderishEventMigrator)
Exemple #6
0
def migrate_folderishdocuments(portal):
    return migrate(portal, FolderishDocumentMigrator)
def migrate_to_pa_event(context):
    loadMigrationProfile(context, 'profile-plone.app.event:default')
    portal = context.getParentNode()
    migrate(portal, DXOldEventMigrator)