Skip to main content

Fix for the comparison of security wrapped keyreferences.

Project description

gocept.patch_keyreferences

This package fixes the comparison between keyreferences of zope.keyreference in Python 3.

Reasoning

In Python 2 zope.keyreference used to compare items via the __cmp__ method. This was facilitated by the C-implementation of the Zope security packages, as it allowed the comparison without un-wrapping the security proxy explicitly. Python 3 used rich comparison and this behaviour stopped working. For further information see the following PR.

This package applies a monkey patch to make the fix usable although it is the wrong place to fix it in general.

Usage

To use this package include it in the zcml of you application:

<configure xmlns="http://namespaces.zope.org/zope">

    <include package="gocept.patch_keyreferences" />

</configure>

Changes

0.1 (2020-08-07)

  • Initial release.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gocept.patch_keyreferences-0.1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

gocept.patch_keyreferences-0.1-py2.py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page