Skip to content

Commit

Permalink
Merge pull request #38 from plone/fix-circular-dependency-CMFPlone
Browse files Browse the repository at this point in the history
Fix circular dependency on CMFPlone.
  • Loading branch information
gforcada authored Mar 11, 2023
2 parents 965a744 + e4eada2 commit c9bd6da
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions news/38.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove circular dependency on Products.CMFPlone. Use moved imports from plone.base instead.
[jensens]
2 changes: 1 addition & 1 deletion plone/session/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<include file="resources.zcml" />
<include
file="profiles.zcml"
zcml:condition="installed Products.CMFPlone"
zcml:condition="installed plone.base"
/>

</configure>
2 changes: 1 addition & 1 deletion plone/session/hiddenprofiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Products.CMFPlone.interfaces import INonInstallable
from plone.base.interfaces import INonInstallable
from zope.interface import implementer


Expand Down
2 changes: 1 addition & 1 deletion plone/session/profiles/default/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
===============================
-->
<records
interface="Products.CMFPlone.interfaces.IBundleRegistry"
interface="plone.base.interfaces.IBundleRegistry"
prefix="plone.bundles/plone-session">
<value key="enabled">True</value>
<value key="jscompilation">++resource++plone.session.refreshsupport.js</value>
Expand Down
2 changes: 1 addition & 1 deletion plone/session/profiles/uninstall/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<registry>

<records
interface="Products.CMFPlone.interfaces.IBundleRegistry"
interface="plone.base.interfaces.IBundleRegistry"
prefix="plone.bundles/plone-session"
remove="true">
</records>
Expand Down
1 change: 0 additions & 1 deletion plone/session/tests/testPAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def setCookie(


class TestSessionPlugin(unittest.TestCase):

layer = PLONE_SEESION_FUNCTIONAL_TESTING
userid = "jbloggs"

Expand Down
2 changes: 1 addition & 1 deletion plone/session/tktauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def safe_text(value, encoding="utf-8"):
elif isinstance(value, bytes):
try:
value = str(value, encoding)
except (UnicodeDecodeError):
except UnicodeDecodeError:
value = value.decode("utf-8", "replace")
return value

Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,11 @@
]
),
install_requires=[
"AccessControl",
"plone.keyring",
"plone.protect",
"Products.GenericSetup",
"Products.CMFPlone",
"Products.PluggableAuthService",
"setuptools",
"zope.component",
"zope.interface",
"Zope",
],
)

0 comments on commit c9bd6da

Please sign in to comment.