Skip to content

Commit

Permalink
Merge branch '4.x' into issue_846_2
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Jun 18, 2020
2 parents 6aac3a9 + 8171f85 commit 84200ae
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -10,6 +10,9 @@ https://zope.readthedocs.io/en/2.13/CHANGES.html
4.4.4 (unreleased)
------------------

- Decrease cookie size for copy/paste clipboard cookie
(`#854 <https://github.com/zopefoundation/Zope/issues/854>`_)

- Fix ``default`` keyword handling in page templates
(`#846 <https://github.com/zopefoundation/Zope/issues/846>`_)

Expand Down
1 change: 1 addition & 0 deletions buildout.cfg
Expand Up @@ -160,6 +160,7 @@ recipe = zc.recipe.egg
eggs =
Zope[docs]
Sphinx
tempstorage
scripts =
sphinx-build

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -10,6 +10,7 @@ This is the official home for all Zope documentation.
operation
wsgi
maintenance
roadmap
changes
zopebook/index
zdgbook/index
63 changes: 63 additions & 0 deletions docs/roadmap.rst
@@ -0,0 +1,63 @@
Zope development roadmap
========================

The Zope development and support roadmap. **Last updated: June 2020**


Zope 2.13 - previous version
----------------------------

* Python support:

- 2.7

* Support schedule:

- Full support: -
- Bug fixes: -
- Security fixes: until 12/31/2020 [1]_


Zope 4 - stable version
-----------------------

* Python support:

- 2.7
- 3.5
- 3.6
- 3.7
- 3.8

* Support schedule:

- Full support: until Zope 5.0 is released, planned for September 2020
- Bug fixes: until 12/31/2021
- Security fixes: until 12/31/2022 [2]_


Zope 5 - development version
----------------------------

* Python support:

- 3.6
- 3.7
- 3.8
- 3.9 (may wait until Zope 5.1)

* Support schedule:

- Full support: starting with the Zope 5.0 release, planned
for September 2020
- Bug fixes: TBD
- Security fixes: TBD


See the `Plone release schedule <https://plone.org/download/release-schedule>`_
for details about Plone version support. Zope will track some of their
milestones with its own releases.


.. [1] End of security fix support for Plone releases based on Zope 2.13
.. [2] End of security fix support for Plone releases based on Zope 4
23 changes: 12 additions & 11 deletions src/OFS/CopySupport.py
Expand Up @@ -23,8 +23,6 @@
from zlib import decompressobj

import six
from six.moves.urllib.parse import quote
from six.moves.urllib.parse import unquote

import transaction
from AccessControl import ClassSecurityInfo
Expand Down Expand Up @@ -56,6 +54,14 @@
from zope.lifecycleevent import ObjectMovedEvent


try:
from base64 import decodebytes
from base64 import encodebytes
except ImportError: # Python 2
from base64 import decodestring as decodebytes
from base64 import encodestring as encodebytes


class CopyError(Exception):
pass

Expand Down Expand Up @@ -671,10 +677,7 @@ def _cb_encode(d):
json_bytes = dumps(d).encode('utf-8')
squashed_bytes = compress(json_bytes, 2) # -> bytes w/ useful encoding
# quote for embeding in cookie
if six.PY2:
return quote(squashed_bytes)
else:
return quote(squashed_bytes.decode('latin-1'))
return encodebytes(squashed_bytes)


def _cb_decode(s, maxsize=8192):
Expand All @@ -686,11 +689,9 @@ def _cb_decode(s, maxsize=8192):
Return a list of text IDs.
"""
dec = decompressobj()
if six.PY2:
squashed = unquote(s)
else:
squashed = unquote(s).encode('latin-1')
data = dec.decompress(squashed, maxsize)
if six.PY3 and isinstance(s, str):
s = s.encode('latin-1')
data = dec.decompress(decodebytes(s), maxsize)
if dec.unconsumed_tail:
raise ValueError
json_bytes = data.decode('utf-8')
Expand Down
3 changes: 3 additions & 0 deletions versions.cfg
Expand Up @@ -62,6 +62,9 @@ snowballstemmer = 2.0.0
soupsieve = 1.9.6
sphinx-rtd-theme = 0.4.3
sphinxcontrib-websupport = 1.2.2
# tempstorage is only needed because the Sphinx documentation parses
# ZConfig xml configurations, which still contain references to it
tempstorage = 5.1
toml = 0.10.1
tox = 3.14.6
tqdm = 4.43.0
Expand Down

0 comments on commit 84200ae

Please sign in to comment.