Permalink
Browse files

add upgrade step to run types import step, fixes #6

  • Loading branch information...
1 parent 91e9aff commit bbd99cc8da3787c41fc001dccbcfb935f5d49efb @MrTango MrTango committed Dec 12, 2012
View
7 Products/CMFContentPanels/migration.py
@@ -0,0 +1,7 @@
+import logging
+
+logger = logging.getLogger("Products.CMFContentPanels")
+PROFILE_ID = 'profile-Products.CMFContentPanels:default'
+
+def run_types_step(context):
+ context.runImportStepFromProfile(PROFILE_ID, 'typeinfo')
View
15 Products/CMFContentPanels/profiles.zcml
@@ -1,13 +1,22 @@
<configure
xmlns="http://namespaces.zope.org/zope"
- xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
+ xmlns:gs="http://namespaces.zope.org/genericsetup"
i18n_domain="contentpanels">
- <genericsetup:registerProfile
+ <gs:registerProfile
name="default"
title="Products.CMFContentPanels"
directory="profiles/default"
description="Extension profile"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
-</configure>
+
+ <gs:upgradeStep
+ title="Run types import step"
+ description="Apply our own types.xml file."
+ source="2.6a9"
+ destination="2.6b3"
+ handler="Products.CMFContentPanels.migration.run_types_step"
+ profile="Products.CMFContentPanels:default" />
+
+</configure>
View
2 Products/CMFContentPanels/profiles/default/metadata.xml
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<metadata>
- <version>2.6a9</version>
+ <version>2.6b3</version>
</metadata>

0 comments on commit bbd99cc

Please sign in to comment.