-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible startup error by loading plone.app.contentrules zcml (#1645
) Fix possible startup error by explicitly loading ``plone.app.contentrules`` zcml. Also: only load code related to contentrules when this package is available. Fixes #1644 But reported here at first: https://community.plone.org/t/plone-6-0-5-soft-released/17490/3?u=mauritsvanrees
- Loading branch information
1 parent
b67c611
commit 11275de
Showing
5 changed files
with
15 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,3 @@ | ||
Fix possible startup error by explicitly loading ``plone.app.contentrules`` zcml. | ||
Also: only load code related to contentrules when this package is available. | ||
[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
i18n_domain="plone.restapi" | ||
> | ||
|
||
<adapter factory=".ControlpanelSerializeToJson" /> | ||
<adapter factory=".ControlpanelSummarySerializeToJson" /> | ||
<adapter factory=".types.DexterityTypesControlpanelSerializeToJson" /> | ||
<adapter factory=".rules.ContentRulesControlpanelSerializeToJson" /> | ||
<adapter | ||
factory=".rules.ContentRulesControlpanelSerializeToJson" | ||
zcml:condition="installed plone.app.contentrules" | ||
/> | ||
|
||
</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
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