-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 2 profiles to work for plone4 and plone5
- Loading branch information
Showing
20 changed files
with
134 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
i18n_domain="collective.documentgenerator"> | ||
|
||
<genericsetup:registerProfile | ||
name="universal" | ||
title="collective.documentgenerator" | ||
directory="profiles/common" | ||
description="Installs the collective.documentgenerator add-on." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
zcml:condition="have plone-5" | ||
name="default" | ||
title="collective.documentgenerator" | ||
directory="profiles/plone5" | ||
description="Installs the collective.documentgenerator add-on." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
zcml:condition="not-have plone-5" | ||
name="default" | ||
title="collective.documentgenerator" | ||
directory="profiles/plone4" | ||
description="Installs the collective.documentgenerator add-on." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
name="demo" | ||
title="collective.documentgenerator demo" | ||
directory="profiles/demo" | ||
description="Installs the collective.documentgenerator demo profile." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:importStep | ||
name="collectivedocumentgenerator-postInstall" | ||
title="collective.documentgenerator post_install import step" | ||
description="Post install import step from collective.documentgenerator" | ||
handler=".setuphandlers.post_install"> | ||
</genericsetup:importStep> | ||
|
||
<genericsetup:upgradeSteps | ||
source="1" | ||
destination="2" | ||
profile="collective.documentgenerator:default"> | ||
<genericsetup:upgradeDepends | ||
title="Reapply registry.xml" | ||
description="This will add new parameter 'optimize_tables'" | ||
import_steps="plone.app.registry" /> | ||
<genericsetup:upgradeDepends | ||
title="Reapply controlpanel" | ||
description="This will update title and icon that changed" | ||
import_steps="controlpanel" /> | ||
</genericsetup:upgradeSteps> | ||
|
||
<genericsetup:upgradeStep | ||
title="collective.documentgenerator: upgrade to 3" | ||
source="2" | ||
destination="3" | ||
handler="collective.documentgenerator.migrations.migrate_to_3.migrate" | ||
profile="collective.documentgenerator:default" /> | ||
|
||
<utility factory=".setuphandlers.HiddenProfiles" name="collective.documentgenerator" /> | ||
<utility factory=".setuphandlers.HiddenProducts" name="collective.documentgenerator" /> | ||
|
||
</configure> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
src/collective/documentgenerator/profiles/plone4/metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<dependencies> | ||
<dependency>profile-collective.documentgenerator:universal</dependency> | ||
</dependencies> | ||
<version>3</version> | ||
</metadata> |
Empty file.
7 changes: 7 additions & 0 deletions
7
src/collective/documentgenerator/profiles/plone5/metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<dependencies> | ||
<dependency>profile-collective.documentgenerator:universal</dependency> | ||
</dependencies> | ||
<version>3</version> | ||
</metadata> |
13 changes: 13 additions & 0 deletions
13
src/collective/documentgenerator/profiles/plone5/registry.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<registry> | ||
|
||
<records prefix="plone.bundles/collective.documentgenerator" | ||
interface='Products.CMFPlone.interfaces.IBundleRegistry'> | ||
<value key="enabled">True</value> | ||
<value key="csscompilation">++resource++collective.documentgenerator.css/documentgenerator.css</value> | ||
<value key="last_compilation">2016-01-01 00:00:00</value> | ||
<value key="compile">False</value> | ||
<value key="depends">plone</value> | ||
</records> | ||
|
||
</registry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters