-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix deprecation warnings and proper isort (#1606)
* fix deprecation warnings and proper isort * use latest Plone 6 release and make flake8 happy * refactor uid_to_url to make it independent from implementation details of plone.app.uuid
- Loading branch information
Showing
99 changed files
with
373 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ docs/.DS_Store | |
/lib | ||
/lib64 | ||
/local | ||
/venv | ||
/.mr.developer.cfg | ||
*.mo | ||
docs/_build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Fix a bunch of deprecation warnings in a Plone 5.2 compatible way. | ||
Applied propert isort. | ||
Fixed unclosed file issues in a test. | ||
Added Python 3.11 to test matrix. | ||
[jensens] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-r https://dist.plone.org/release/6.0.0/requirements.txt | ||
-r https://dist.plone.org/release/6.0.3/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
[bdist_wheel] | ||
# Do not make the generated wheels have `py2` tag | ||
# See https://packaging.python.org/guides/dropping-older-python-versions/#dealing-with-the-universal-wheels | ||
universal = 0 | ||
universal = 0 | ||
|
||
[isort] | ||
profile = plone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
try: | ||
from plone.base.defaultpage import is_default_page | ||
from plone.base.interfaces import IConstrainTypes | ||
from plone.base.interfaces import IEditingSchema | ||
from plone.base.interfaces import IImagingSchema | ||
from plone.base.interfaces import ILanguage | ||
from plone.base.interfaces import IMailSchema | ||
from plone.base.interfaces import INavigationSchema | ||
from plone.base.interfaces import INonInstallable | ||
from plone.base.interfaces import INonStructuralFolder | ||
from plone.base.interfaces import IPloneSiteRoot | ||
from plone.base.interfaces import ISearchSchema | ||
from plone.base.interfaces import ISecuritySchema | ||
from plone.base.interfaces import ISelectableConstrainTypes | ||
from plone.base.interfaces import ISiteSchema | ||
from plone.base.utils import base_hasattr | ||
from plone.base.utils import safe_callable | ||
from plone.base.utils import safe_hasattr | ||
from plone.base.utils import safe_text | ||
except ImportError: | ||
# BBB Plone 5.2 | ||
from Products.CMFPlone.defaultpage import is_default_page | ||
from Products.CMFPlone.interfaces import IConstrainTypes | ||
from Products.CMFPlone.interfaces import IEditingSchema | ||
from Products.CMFPlone.interfaces import IImagingSchema | ||
from Products.CMFPlone.interfaces import ILanguage | ||
from Products.CMFPlone.interfaces import IMailSchema | ||
from Products.CMFPlone.interfaces import INavigationSchema | ||
from Products.CMFPlone.interfaces import INonInstallable | ||
from Products.CMFPlone.interfaces import INonStructuralFolder | ||
from Products.CMFPlone.interfaces import IPloneSiteRoot | ||
from Products.CMFPlone.interfaces import ISearchSchema | ||
from Products.CMFPlone.interfaces import ISecuritySchema | ||
from Products.CMFPlone.interfaces import ISelectableConstrainTypes | ||
from Products.CMFPlone.interfaces import ISiteSchema | ||
from Products.CMFPlone.utils import base_hasattr | ||
from Products.CMFPlone.utils import safe_callable | ||
from Products.CMFPlone.utils import safe_hasattr | ||
from Products.CMFPlone.utils import safe_text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
import logging | ||
|
||
|
||
try: | ||
from ZTUtils.Lazy import Lazy | ||
except ImportError: | ||
|
Oops, something went wrong.