Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Plone 6 #246

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Changelog
=========

9.1.3 (unreleased)
------------------
10.0.0 (unreleased)
-------------------

- Get rid of the htmllaundry dependency, replace it with the
equivalent code from Euphorie.
Declare support for Plone 6.
[ale-rt]

- Show company certificates in overview
(`#2142 <https://github.com/syslabcom/scrum/issues/2142>`_)
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os


version = "9.1.3.dev0"
version = "10.0.0.dev0"

setup(
name="osha.oira",
Expand All @@ -18,7 +18,8 @@
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 5.1",
"Framework :: Plone :: 5.2",
"Framework :: Plone :: 6.0",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
Expand All @@ -38,7 +39,6 @@
install_requires=[
"Euphorie >=14.0.0",
"ftw.upgrade",
"htmllaundry",
"mobile.sniffer",
"NuPlone >=2.1.0",
"pas.plugins.ldap",
Expand Down
10 changes: 9 additions & 1 deletion src/osha/oira/content/country.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from euphorie.content import MessageFactory as _
from htmllaundry.z3cform import HtmlText
from plone.autoform import directives
from plone.autoform.interfaces import IFormFieldProvider
from plone.supermodel import model
Expand All @@ -9,6 +8,15 @@
from zope.interface import Invalid
from zope.interface import invariant

try:
# This needs a merge of https://github.com/euphorie/Euphorie/pull/739
from euphorie.htmllaundry.z3cform import HtmlText
except ImportError:
# BBB This may not work with lxml 5.2+ (Plone 6.0.11+).
# On those versions it needs a merge and release of this PR:
# https://github.com/syslabcom/htmllaundry/pull/2
from htmllaundry.z3cform import HtmlText


class IOSHACountry(model.Schema):
"""Additional fields for the OSHA countries."""
Expand Down