Skip to content

Python3 fixes#29

Open
sauzher wants to merge 4 commits intoplone-5.2from
plone-5.2-py3
Open

Python3 fixes#29
sauzher wants to merge 4 commits intoplone-5.2from
plone-5.2-py3

Conversation

@sauzher
Copy link
Copy Markdown

@sauzher sauzher commented Feb 17, 2023

Copy link
Copy Markdown
Member

@ale-rt ale-rt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's really desirable, thanks!
I would update the classifiers in setup.py.
This PR breaks Python2.7 compatibility.
I would use six to make at least one release compatible with Plone5.2/Python2.7 so that we can have a proper migration path.

I have added a comment about a comment that it looks to me like a typo :)

Comment thread collective/embedly/setuphandlers.py Outdated
refactoring Controlpanel with  p.a.registry RegistryEditForm wrapper (z3c.form)
@sauzher
Copy link
Copy Markdown
Author

sauzher commented Feb 20, 2023

I've ported code so that it could work with py2 and py3. Ported the ControlPanel to newer implementation.
In a plone4.3-py2 I see embedly control panel and embedly button in an editor, and it seems to work.
In plone5.2-py3 control panel is ok but the button does not render

@ale-rt
Copy link
Copy Markdown
Member

ale-rt commented Feb 20, 2023

Your changes look good to me but I think it would a nice thing to also have the button rendered

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