-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
75 additions
and
64 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,6 @@ | ||
<configure xmlns="http://namespaces.zope.org/zope"> | ||
|
||
<!-- List all packages you depend here --> | ||
<include package="plone.restapi" /> | ||
|
||
</configure> |
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,32 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
i18n_domain="training.votable" | ||
> | ||
|
||
<genericsetup:registerProfile | ||
name="default" | ||
title="training.votable: Install" | ||
description="Package to configure a new training.votable site" | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
directory="profiles/default" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
name="uninstall" | ||
title="training.votable: Uninstall" | ||
description="Uninstall training.votable setup." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
directory="profiles/uninstall" | ||
/> | ||
|
||
<!-- Hide Uninstall Profile--> | ||
<utility | ||
factory=".setuphandlers.HiddenProfiles" | ||
name="training.votable" | ||
/> | ||
|
||
|
||
<include package=".upgrades" /> | ||
|
||
</configure> |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
from Products.CMFPlone.interfaces import INonInstallable | ||
from zope.interface import implementer | ||
|
||
|
||
@implementer(INonInstallable) | ||
class HiddenProfiles: | ||
def getNonInstallableProfiles(self): | ||
"""Hide uninstall profile from site-creation and quickinstaller.""" | ||
return [ | ||
"training.votable:uninstall", | ||
] |
Empty file.
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,19 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
> | ||
|
||
<!-- Example upgrade step | ||
<genericsetup:upgradeSteps | ||
profile="training.votable:default" | ||
source="1000" | ||
destination="1001" | ||
> | ||
<genericsetup:upgradeDepends | ||
title="Update registry value" | ||
import_steps="plone.app.registry" | ||
/> | ||
</genericsetup:upgradeSteps> | ||
--> | ||
|
||
</configure> |