Skip to content

Make ZMS PAS plugins work with Py2/Zope2#6

Open
drfho wants to merge 8 commits intomasterfrom
py2_zope2_compatibility
Open

Make ZMS PAS plugins work with Py2/Zope2#6
drfho wants to merge 8 commits intomasterfrom
py2_zope2_compatibility

Conversation

@drfho
Copy link
Contributor

@drfho drfho commented Jan 31, 2023

The Products.zmsPluggableAuthService does not work with ZMS3/Py2/Zope2:

PAS_Py3_vs_Py2

To archive down-compatibility some module imports (Products.zmsPluggableAuthService.plugins, base64, urllib) must be modified and a icon image is required.
Install:
./pip install --no-deps -e ~/src/sntl-projects/Products.zmsPluggableAuthService/.

Python2 (deprecated!) needs following module versions (deprecated!):

./pip install cryptography==3.3.2
./pip install itsdangerous==1.1.0

With the changes the ZMS PAS plugins work with Zope5 and Zope2:

ZMSSSOPAS_Py3

ZMSSSOPAS_Py2

@zmsdev:
maybe there is a ore elegant way to differ py2/py3 imports?

@drfho drfho requested a review from zmsdev January 31, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants