-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from plone/pa-discussion-core-addon
6.1: Cleanup plone.app.discussion settings when package is missing
- Loading branch information
Showing
11 changed files
with
188 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
6.1: Cleanup ``plone.app.discussion`` settings when the package is not available. | ||
If the site contains comments, we throw an error and stop the upgrade. | ||
The advice then is to add the ``plone.app.discussion`` package. | ||
[maurits] |
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
13 changes: 13 additions & 0 deletions
13
plone/app/upgrade/v61/profiles/uninstall-discussion/actions.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" encoding="utf-8"?> | ||
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
name="portal_actions" | ||
> | ||
<object meta_type="CMF Action Category" | ||
name="user" | ||
> | ||
<object meta_type="CMF Action" | ||
name="review-comments" | ||
remove="true" | ||
/> | ||
</object> | ||
</object> |
6 changes: 6 additions & 0 deletions
6
plone/app/upgrade/v61/profiles/uninstall-discussion/browserlayer.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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layers> | ||
<layer name="plone.app.discussion" | ||
remove="true" | ||
/> | ||
</layers> |
28 changes: 28 additions & 0 deletions
28
plone/app/upgrade/v61/profiles/uninstall-discussion/catalog.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,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object name="portal_catalog"> | ||
|
||
<index meta_type="FieldIndex" | ||
name="total_comments" | ||
remove="true" | ||
/> | ||
<index meta_type="KeywordIndex" | ||
name="commentators" | ||
remove="true" | ||
/> | ||
<column remove="true" | ||
value="total_comments" | ||
/> | ||
<column remove="true" | ||
value="last_comment_date" | ||
/> | ||
<column remove="true" | ||
value="commentators" | ||
/> | ||
<column remove="true" | ||
value="in_response_to" | ||
/> | ||
<column remove="true" | ||
value="author_name" | ||
/> | ||
|
||
</object> |
14 changes: 14 additions & 0 deletions
14
plone/app/upgrade/v61/profiles/uninstall-discussion/controlpanel.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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
name="portal_controlpanel" | ||
purge="False" | ||
i18n:domain="plone" | ||
> | ||
|
||
<configlet action_id="discussion" | ||
appId="plone.app.discussion" | ||
category="plone-content" | ||
remove="true" | ||
/> | ||
|
||
</object> |
8 changes: 8 additions & 0 deletions
8
plone/app/upgrade/v61/profiles/uninstall-discussion/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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<registry> | ||
<!-- This would give ModuleNotFoundError: No module named 'plone.app.discussion' | ||
So we do this in Python code in maybe_cleanup_discussion. --> | ||
<!-- <records interface="plone.app.discussion.interfaces.IDiscussionSettings" | ||
remove="true" | ||
/> --> | ||
</registry> |
9 changes: 9 additions & 0 deletions
9
plone/app/upgrade/v61/profiles/uninstall-discussion/types.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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object meta_type="CMF Types Tool" | ||
name="portal_types" | ||
> | ||
<object meta_type="Factory-based Type Information" | ||
name="Discussion Item" | ||
remove="True" | ||
/> | ||
</object> |
13 changes: 13 additions & 0 deletions
13
plone/app/upgrade/v61/profiles/uninstall-discussion/workflows.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" encoding="utf-8"?> | ||
<object meta_type="Plone Workflow Tool" | ||
name="portal_workflow" | ||
> | ||
<object meta_type="Workflow" | ||
name="comment_review_workflow" | ||
remove="True" | ||
/> | ||
<object meta_type="Workflow" | ||
name="comment_one_state_workflow" | ||
remove="True" | ||
/> | ||
</object> |