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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gocept.patch_keyreferences-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 634c5869567945d7c25905e119a3fa3d8e40deb3e01f466af4b2e404348bfb48 |
|
MD5 | c0d3ad6a53e57a7fa4a69367c78d8ffe |
|
BLAKE2b-256 | 07a51df0feb0c8a86013a4eb5909f04074517756be9fd4e8f84c821e4a376c0a |
Hashes for gocept.patch_keyreferences-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc82060f107cf5db8c424b173276ea267b016fc0337b30c2981ea1c8eac87950 |
|
MD5 | 44ddad12bdfec94d8ed29205096d8fc1 |
|
BLAKE2b-256 | 1d8406c11261248645fb36d82021f40dd177becb1b1a9151a6395716f7de38c1 |