File tree Expand file tree Collapse file tree 7 files changed +43
-29
lines changed
Expand file tree Collapse file tree 7 files changed +43
-29
lines changed Original file line number Diff line number Diff line change 1- <?xml version =' 1.0' encoding =' UTF-8 ' ?>
1+ <?xml version =" 1.0" encoding =" utf-8 " ?>
22<metadata >
33 <version >1004</version >
44 <dependencies >
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- from plone .app .testing import setRoles
3- from plone .app .testing import TEST_USER_ID
42# from cs_dynamicpages.testing import CS_DYNAMICPAGES_FUNCTIONAL_TESTING
53from cs_dynamicpages .testing import CS_DYNAMICPAGES_INTEGRATION_TESTING
4+ from plone .app .testing import setRoles
5+ from plone .app .testing import TEST_USER_ID
66
77import unittest
88
99
1010class UpgradeStepIntegrationTest (unittest .TestCase ):
11-
1211 layer = CS_DYNAMICPAGES_INTEGRATION_TESTING
1312
1413 def setUp (self ):
15- self .portal = self .layer [' portal' ]
16- setRoles (self .portal , TEST_USER_ID , [' Manager' ])
14+ self .portal = self .layer [" portal" ]
15+ setRoles (self .portal , TEST_USER_ID , [" Manager" ])
1716
1817 def test_upgrade_step (self ):
1918 # dummy, add tests here
Original file line number Diff line number Diff line change 1- <configure xmlns =" http://namespaces.zope.org/zope"
2- xmlns : gs =" http://namespaces.zope.org/genericsetup" >
1+ <configure
2+ xmlns =" http://namespaces.zope.org/zope"
3+ xmlns : gs =" http://namespaces.zope.org/genericsetup"
4+ >
35
4- <gs : registerProfile name =" 1004"
5- title =" Remove unneeded behaviors"
6- directory =" 1004"
7- description =' Configuration for version 1004'
8- for =" Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
9- provides =" Products.GenericSetup.interfaces.EXTENSION" />
6+ <gs : registerProfile
7+ name =" 1004"
8+ title =" Remove unneeded behaviors"
9+ description =" Configuration for version 1004"
10+ provides =" Products.GenericSetup.interfaces.EXTENSION"
11+ for =" Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
12+ directory =" 1004"
13+ />
1014
11- <gs : upgradeSteps source =" 1003"
12- destination =" 1004"
13- profile =" cs_dynamicpages:default" >
15+ <gs : upgradeSteps
16+ profile =" cs_dynamicpages:default"
17+ source =" 1003"
18+ destination =" 1004"
19+ >
1420
15- <gs : upgradeStep title =" Remove unneeded behaviors"
16- description =" "
17- handler =" .v1004.upgrade" />
21+ <gs : upgradeStep
22+ title =" Remove unneeded behaviors"
23+ description =" "
24+ handler =" .v1004.upgrade"
25+ />
1826
19- <gs : upgradeDepends title =" Remove unneeded behaviors (GS profile)"
20- description =" "
21- import_profile =" cs_dynamicpages.upgrades:1004" />
27+ <gs : upgradeDepends
28+ title =" Remove unneeded behaviors (GS profile)"
29+ description =" "
30+ import_profile =" cs_dynamicpages.upgrades:1004"
31+ />
2232
2333 </gs : upgradeSteps >
2434
Original file line number Diff line number Diff line change 1010 purge =" false"
1111 >
1212
13- <element remove =" true" value =" plone.allowdiscussion" />
13+ <element remove =" true"
14+ value =" plone.allowdiscussion"
15+ />
1416
1517 </property >
1618
Original file line number Diff line number Diff line change 1010 purge =" false"
1111 >
1212
13- <element remove =" true" value =" plone.allowdiscussion" />
13+ <element remove =" true"
14+ value =" plone.allowdiscussion"
15+ />
1416
1517 </property >
1618
Original file line number Diff line number Diff line change 1010 purge =" false"
1111 >
1212
13- <element remove =" true" value =" plone.allowdiscussion" />
13+ <element remove =" true"
14+ value =" plone.allowdiscussion"
15+ />
1416
1517 </property >
1618
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33from . import logger
4+ from .base import reload_gs_profile
45
56
6- from .base import reload_gs_profile
77# from plone import api
88
99
1010def upgrade (setup_tool = None ):
11- """
12- """
11+ """ """
1312 logger .info ("Running upgrade (Python): Remove unneeded behaviors" )
1413 reload_gs_profile (setup_tool )
You can’t perform that action at this time.
0 commit comments