Skip to content

Commit

Permalink
[fc] Repository: Products.CMFPlone
Browse files Browse the repository at this point in the history
Branch: refs/heads/5.2.x
Date: 2023-10-19T16:04:55+02:00
Author: Johannes Raggam (thet) <[email protected]>
Commit: plone/Products.CMFPlone@c86a5f5

Fix problem when adding a Plone site with a custom INonInstallable utility without a getNonInstallableProfiles method.

Fixes: #3862.

Files changed:
A news/3862.bugfix
M Products/CMFPlone/browser/admin.py
Repository: Products.CMFPlone

Branch: refs/heads/5.2.x
Date: 2023-10-25T17:15:28+02:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/Products.CMFPlone@daa4f02

Merge pull request #3863 from plone/fix-addsite-no-getnoninstallableproducts

Fix problem when adding a Plone site with a custom INonInstallable ut…

Files changed:
A news/3862.bugfix
M Products/CMFPlone/browser/admin.py
  • Loading branch information
mauritsvanrees committed Oct 25, 2023
1 parent dc13b3c commit 922954a
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions last_commit.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
Repository: plone.app.linkintegrity
Repository: Products.CMFPlone


Branch: refs/heads/3.x
Date: 2023-09-29T16:48:20+02:00
Author: Timo Stollenwerk (tisto) <stollenwerk@kitconcept.com>
Commit: https://github.com/plone/plone.app.linkintegrity/commit/fdb50f90a110b963aea99380d7e999d57ff23fe3
Branch: refs/heads/5.2.x
Date: 2023-10-19T16:04:55+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: https://github.com/plone/Products.CMFPlone/commit/c86a5f594fc75f4c91060d8894147e58c966637a

Re-add utils.py, fix test_info.py
Fix problem when adding a Plone site with a custom INonInstallable utility without a getNonInstallableProfiles method.

Fixes: #3862.

Files changed:
A news/3862.bugfix
M Products/CMFPlone/browser/admin.py

b'diff --git a/Products/CMFPlone/browser/admin.py b/Products/CMFPlone/browser/admin.py\nindex 7b1c1b502c..b1034309b1 100644\n--- a/Products/CMFPlone/browser/admin.py\n+++ b/Products/CMFPlone/browser/admin.py\n@@ -150,7 +150,11 @@ def profiles(self):\n ]\n utils = getAllUtilitiesRegisteredFor(INonInstallable)\n for util in utils:\n- not_installable.extend(util.getNonInstallableProfiles())\n+ not_installable.extend(\n+ util.getNonInstallableProfiles()\n+ if hasattr(util, "getNonInstallableProfiles")\n+ else []\n+ )\n \n for info in profile_registry.listProfileInfo():\n if info.get(\'type\') == EXTENSION and \\\ndiff --git a/news/3862.bugfix b/news/3862.bugfix\nnew file mode 100644\nindex 0000000000..a9e0e6be6d\n--- /dev/null\n+++ b/news/3862.bugfix\n@@ -0,0 +1,3 @@\n+Fix problem when adding a Plone site with a custom INonInstallable utility without a getNonInstallableProfiles method.\n+\n+Fixes: #3862.\n'

Repository: Products.CMFPlone


Branch: refs/heads/5.2.x
Date: 2023-10-25T17:15:28+02:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: https://github.com/plone/Products.CMFPlone/commit/daa4f0215393cfc71fae28be50feb371cccab8f4

Merge pull request #3863 from plone/fix-addsite-no-getnoninstallableproducts

Fix problem when adding a Plone site with a custom INonInstallable ut…

Files changed:
A plone/app/linkintegrity/tests/utils.py
M plone/app/linkintegrity/tests/test_info.py
A news/3862.bugfix
M Products/CMFPlone/browser/admin.py

b'diff --git a/plone/app/linkintegrity/tests/test_info.py b/plone/app/linkintegrity/tests/test_info.py\nindex 2b51729..c4c4457 100644\n--- a/plone/app/linkintegrity/tests/test_info.py\n+++ b/plone/app/linkintegrity/tests/test_info.py\n@@ -6,7 +6,7 @@\n \n \n class DeleteConfirmationInfoTestCase(unittest.TestCase):\n- layer = testing.PLONE_APP_LINKINTEGRITY_INTEGRATION_TESTING\n+ layer = testing.PLONE_APP_LINKINTEGRITY_DX_FUNCTIONAL_TESTING\n \n def setUp(self):\n self.portal = self.layer["portal"]\ndiff --git a/plone/app/linkintegrity/tests/utils.py b/plone/app/linkintegrity/tests/utils.py\nnew file mode 100644\nindex 0000000..895e85f\n--- /dev/null\n+++ b/plone/app/linkintegrity/tests/utils.py\n@@ -0,0 +1,7 @@\n+from plone.app.textfield import RichTextValue\n+from zope.lifecycleevent import modified\n+\n+\n+def set_text(obj, text):\n+ obj.text = RichTextValue(text)\n+ modified(obj)\n'
b'diff --git a/Products/CMFPlone/browser/admin.py b/Products/CMFPlone/browser/admin.py\nindex 7b1c1b502c..b1034309b1 100644\n--- a/Products/CMFPlone/browser/admin.py\n+++ b/Products/CMFPlone/browser/admin.py\n@@ -150,7 +150,11 @@ def profiles(self):\n ]\n utils = getAllUtilitiesRegisteredFor(INonInstallable)\n for util in utils:\n- not_installable.extend(util.getNonInstallableProfiles())\n+ not_installable.extend(\n+ util.getNonInstallableProfiles()\n+ if hasattr(util, "getNonInstallableProfiles")\n+ else []\n+ )\n \n for info in profile_registry.listProfileInfo():\n if info.get(\'type\') == EXTENSION and \\\ndiff --git a/news/3862.bugfix b/news/3862.bugfix\nnew file mode 100644\nindex 0000000000..a9e0e6be6d\n--- /dev/null\n+++ b/news/3862.bugfix\n@@ -0,0 +1,3 @@\n+Fix problem when adding a Plone site with a custom INonInstallable utility without a getNonInstallableProfiles method.\n+\n+Fixes: #3862.\n'

0 comments on commit 922954a

Please sign in to comment.