Zope Container
Project description
zope.container
This package define interfaces of container components, and provides container implementations such as a BTreeContainer and OrderedContainer, as well as the base class used by zope.site.folder for the Folder implementation.
Documentation is hosted at https://zopecontainer.readthedocs.io
Changes
4.9 (2022-11-16)
Add support for building arm64 wheels on macOS.
4.8 (2022-11-06)
Add support for final Python 3.11 release.
4.7 (2022-09-15)
Disable unsafe math optimizations in C code. See pull request 46.
4.6 (2022-07-14)
Add support for Python 3.11 (as of 3.11.0b3).
4.5.0 (2021-11-19)
Add support for Python 3.9 and 3.10.
4.4.0 (2020-04-02)
Support the PURE_PYTHON environment variable at runtime instead of just at wheel build time. A value of 0 forces the C extensions to be used failing if they aren’t present. Any other value forces the Python implementation to be used, ignoring the C extensions.
Drop support for the deprecated python setup.py test command.
Ensure all objects have consistent interface resolution orders. This may slightly change the order of interfaces for ContainedProxy objects. See issue 34.
Stop including outdated versions of zope.proxy (implementation) and persistent headers. Instead, locate and use the installed versions. See issue 32.
4.3.0 (2019-11-11)
Add support for Python 3.8.
Drop support for Python 3.4.
4.2.2 (2018-08-10)
Add a dependency on zope.cachedescriptors, previously removed in 3.11. zope.cachedescriptors is a lightweight package, and the copied code had diverged from the source. See https://github.com/zopefoundation/zope.container/issues/16
Fix the possibility of a rare crash in the C extension when deallocating items. See https://github.com/zopefoundation/zope.container/issues/24
Add support for Python 3.7.
4.2.1 (2017-08-02)
Make OrderedContainer.updateOrder normalize and store text keys the same way that __setitem__ does. Fixes https://github.com/zopefoundation/zope.container/issues/21
4.2.0 (2017-07-31)
Add support for Python 3.5 and 3.6.
Drop support for Python 2.6 and 3.3.
Make OrderedContainer properly store the decoded text keys for maintaining order instead of the raw bytes. Also make it able to accept raw bytes under Python 3 in the first place. Fixes https://github.com/zopefoundation/zope.container/issues/17
Fix OrderedContainer becoming inconsistent if an event subscriber threw an exception when adding an item. See https://github.com/zopefoundation/zope.container/issues/18
Attain 100% test coverage. See https://github.com/zopefoundation/zope.container/issues/15
Make the default NameChooser always decode bytes using ASCII instead of whatever the current system codec happens to be.
Make the default NameChooser stop catching KeyboardInterrupt and other BaseException types when it potentially calls user-defined code to convert a name to a text string. Instead, just catch Exception.
Respect the PURE_PYTHON environment variable at runtime in addition to build time. This makes it possible to use the pure-Python implementation of the container proxy on CPython for ease of debugging. See https://github.com/zopefoundation/zope.container/issues/13
4.1.0 (2015-05-22)
Make zope.container._proxy.PyContainedProxyBase inherit directly from zope.proxy.AbstractProxyBase as well as persistent.Persistent, removing a bunch of redundant code, and fixing bugs in interaction with pure-Python persistence. See: https://github.com/zopefoundation/zope.container/pull/4
Add direct dependencies on zope.proxy and persistent since we import from them; pin them to the versions needed for pure-Python.
Drop deprecated BBB imports module, zope.container.dependency.
4.0.0 (2014-03-19)
Add support for Python 3.4.
Add support for PyPy.
4.0.0a3 (2013-02-28)
Restore Folder pickle forward/backward compatibility with version 3.12.0 after making it inherit from BTreeContainer.
4.0.0a2 (2013-02-21)
Allow testing without checkouts of unreleased zope.publisher and ZODB.
Add Python 3 Trove classifiers.
4.0.0a1 (2013-02-20)
Add support for Python 3.3.
Make Folder class inherit from BTreeContainer class, so that the IContainer interface does not need to be re-implemented. Added a data attribute for BBB.
Replace deprecated zope.component.adapts usage with equivalent zope.component.adapter decorator.
Replace deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.
Drop support for Python 2.4 and 2.5.
Send IContainerModifiedEvent after the container is modified (LP#705600).
Preserve the original exception traceback in OrderedContainer.__setitem__.
Handle Broken Objects more gracefully
Fix a bug that made it impossible to store None values in containers (LP#1070719).
3.12.0 (2010-12-14)
Fix detection of moving folders into itself or a subfolder of itself. (LP#118088)
Fix ZCML-related tests and dependencies.
Add zcml extra dependencies.
3.11.1 (2010-04-30)
Prefer the standard libraries doctest module to the one from zope.testing.
Add compatibility with ZODB3 3.10 by importing the IBroken interface from it directly. Once we can rely on the new ZODB3 version exclusively, we can remove the dependency onto the zope.broken distribution.
Never fail if the suggested name is in a wrong type (#227617)
checkName first checks the parameter type before the emptiness.
3.11.0 (2009-12-31)
Copy two trivial classes from zope.cachedescriptors into this package, which allows us to remove that dependency. We didn’t actually use any caching properties as the dependency suggested.
3.10.1 (2009-12-29)
Move zope.copypastemove related tests into that package.
Remove no longer used zcml prefix from the configure file.
Stop importing DocTestSuite from zope.testing.doctestunit. Fixes compatibility problems with zope.testing 3.8.4.
3.10.0 (2009-12-15)
Break testing dependency on zope.app.testing.
Break testing dependency on zope.app.dependable by moving the code and tests into that package.
Import ISite from zope.component after it was moved there from zope.location.
3.9.1 (2009-10-18)
Rerelease 3.9.0 as it had a broken Windows 2.6 egg.
Mark this project as part of the ZTK.
3.9.0 (2009-08-28)
Previous releases should be versioned 3.9.0 as they are not pure bugfix releases and worth a “feature” release, increasing feature version.
Packages that depend on any changes introduced in version 3.8.2 or 3.8.3 should depend on version 3.9 or greater.
3.8.3 (2009-08-27)
Move IXMLRPCPublisher ZCML registrations for containers from zope.app.publisher.xmlrpc to zope.container for now.
3.8.2 (2009-05-17)
Rid ourselves of IContained interface. This interface was moved to zope.location.interfaces. A b/w compat import still exists to keep old code running. Depend on zope.location>=3.5.4.
Rid ourselves of the implementations of IObjectMovedEvent, IObjectAddedEvent, IObjectRemovedEvent interfaces and ObjectMovedEvent, ObjectAddedEvent and ObjectRemovedEvent classes. B/w compat imports still exist. All of these were moved to zope.lifecycleevent. Depend on zope.lifecycleevent>=3.5.2.
Fix a bug in OrderedContainer where trying to set the value for a key that already exists (duplication error) would actually delete the key from the order, leaving a dangling reference.
Partially break dependency on zope.traversing by disusing zope.traversing.api.getPath in favor of using ILocationInfo(object).getPath(). The rest of the runtime dependencies on zope.traversing are currently interface dependencies.
Break runtime dependency on zope.app.dependable by using a zcml condition on the subscriber ZCML directive that registers the CheckDependency handler for IObjectRemovedEvent. If zope.app.dependable is not installed, this subscriber will never be registered. zope.app.dependable is now a testing dependency only.
3.8.1 (2009-04-03)
Fix misspackaged 3.8.0
3.8.0 (2009-04-03)
Change configure.zcml to not depend on zope.app.component. Fixes: https://bugs.launchpad.net/bugs/348329
Move the declaration of IOrderedContainer.updateOrder to a new, basic IOrdered interface and let IOrderedContainer inherit it. This allows easier reuse of the declaration.
3.7.2 (2009-03-12)
Fix: added missing ComponentLookupError, missing since revision 95429 and missing in last release.
Adapt to the move of IDefaultViewName from zope.component.interfaces to zope.publisher.interfaces.
Add support for reserved names for containers. To specify reserved names for some container, you need to provide an adapter from the container to the zope.container.interfaces.IReservedNames interface. The default NameChooser is now also aware of reserved names.
3.7.1 (2009-02-05)
Raise more “Pythonic” errors from __setitem__, losing the dependency on zope.exceptions:
o zope.exceptions.DuplicationError -> KeyError
o zope.exceptions.UserError -> ValueError
Move import of IBroken interface to use new zope.broken package, which has no dependencies beyond zope.interface.
Make test part pull in the extra test requirements of this package.
Split the z3c.recipe.compattest configuration out into a new file, compat.cfg, to reduce the burden of doing standard unit tests.
Strip out bogus develop eggs from buildout.cfg.
3.7.0 (2009-01-31)
Split this package off zope.app.container. This package is intended to have far less dependencies than zope.app.container.
This package also contains the container implementation that used to be in zope.app.folder.
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 Distributions
Hashes for zope.container-4.9-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab8de9f6ea07e2406145d71631f36d4bcd5c1fff03fb34b8596b89ca40f2947 |
|
MD5 | 00ee91f51292239466f8cc9ed8623745 |
|
BLAKE2b-256 | 8c94d7326e628c715237db0b6684d96fe2e244a73949cf7bbb6b0d6fe9c46efb |
Hashes for zope.container-4.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff5f205abc2d0b8171d055aa0e8d37ed621896b326de808a2123af2ba8cb8cb |
|
MD5 | 2d262ed14d8dfb6512ce8f4688fc29f1 |
|
BLAKE2b-256 | 84045895540b86a9de1aa7ddf77135c5a84180a00cd554f22ce9b895e98a87e4 |
Hashes for zope.container-4.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d556e1edc635ccf7575d690246491d1684505333c9b5f568a47ab4fa005979a4 |
|
MD5 | d6d59a79f19807df52c66c456af16882 |
|
BLAKE2b-256 | 55ecc185818f54ad12fdab5bcebae74e3da8ca1b51b6b61e0430bcf46365c208 |
Hashes for zope.container-4.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e2068fb563200887109766b904f1c6969bbe80de277e9da838412580832a9a |
|
MD5 | 4db1e6273d0d1f29b660de0ee1db35c3 |
|
BLAKE2b-256 | 9bc3ae3a8d1810119eedfd68e9eec7ea32fa9e5fc965c3ede2d80012bfa42322 |
Hashes for zope.container-4.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83319fb0869f05bd3e43d5cac55721dd7a8127dea79d9cb11286672f06679ae0 |
|
MD5 | 0c92985e60d6a5395193a693da35b0d5 |
|
BLAKE2b-256 | 4c7bce4fb9575acc706392a3b622eceb536a16834789c6c7e6dd11a3937c0ee6 |
Hashes for zope.container-4.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbaeeb42335006937a328e33fff959949935690a6346dad116c33291b7b6b7f9 |
|
MD5 | 120668079394a2cb9f006ef46e900bb4 |
|
BLAKE2b-256 | f5706bc47207d649dc8e67df264e8861e2bbf346892a63a31613083c6016d8cb |
Hashes for zope.container-4.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1349ea97cf209971760a344b019f73f2782fd0442b614b0ddffca797a4097687 |
|
MD5 | 194c883a6561ae6524ce3caf10e8a064 |
|
BLAKE2b-256 | e9d3e0f555168d5f3e0be150ba4c7d5b0fd1a6baa45e7a1b1c4e049d1eb46dbf |
Hashes for zope.container-4.9-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b4991e238bc8f8089537609f2f9578941ef960992da12636791ef494b3fb179 |
|
MD5 | 661d025b16026d3fae3f52b319822e82 |
|
BLAKE2b-256 | 199e4de361c2eea3876c338a94e58471099a2adc7e265646c9b2e03278e697b2 |
Hashes for zope.container-4.9-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be696387c2fa46793ba2c1823b568a4536eedc299405a569bf69cb9e7fc54c9 |
|
MD5 | 0d6afc0f1ec8cf07604efed15aa106b5 |
|
BLAKE2b-256 | c9745f7658f9a4c044018bb33cc0f7db32a80b25936cb9cc4924ca9937469190 |
Hashes for zope.container-4.9-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3014594caf84784612d248e65917477127556895142402210fb10b66664b1c |
|
MD5 | 983c4673bdf35ce073c54ca08e50edd1 |
|
BLAKE2b-256 | c681ec769cdb0390a131ad973b8e4b942d6385c0083ac3697207c9c6f8bf2404 |
Hashes for zope.container-4.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7bf0f5ba62ec130c4c3b0e34fb7d4083f9dfee11199eb1bf7dfd5e556b3123e |
|
MD5 | 234b0db81bb1577724a2b4d41243d549 |
|
BLAKE2b-256 | 3820cb6206c30420680bcfe31489bc3c39c6847543346c0c19f6983fce72b92a |
Hashes for zope.container-4.9-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85a28c5177c1ce59623449d9a91e1ae5a8cb7bde03ea9a0c927f5d4087e4d7e9 |
|
MD5 | d4736ea3fa89f12ccb39306a90e892b8 |
|
BLAKE2b-256 | a9b0be036c75f30492401a406f58310cdcbf19ebefec128ec62d701fe8a13244 |
Hashes for zope.container-4.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a315e39a0b9aa6f321038c6a3025280b3458d81a56d072fbb649b5219b12159 |
|
MD5 | 04824642b4ff9425052950235afd9ee1 |
|
BLAKE2b-256 | f4e7c83c669fa795029d7b082bf6a62b9cd359bde16119ab55ecb21a0f14cd70 |
Hashes for zope.container-4.9-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 330db103d875f77545707df164b247ec960db5a062717355b0d48a3715fff32d |
|
MD5 | 3b8650dca9aa6499890840e2cea3e25d |
|
BLAKE2b-256 | 361c60a84747c22d5c559986e2989be5dc2560b1056192ab4a8c4630cfdb3138 |
Hashes for zope.container-4.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9743bba6b6d2745d1f68ff03533113e631f3cc0ef053706c263cc7b4522b5e8 |
|
MD5 | ef386ed45850698e31f58efabb4fb02d |
|
BLAKE2b-256 | 5f916578398aaabaddacaf641c7724fe8a4311a2e298e11718a19578caaec92b |
Hashes for zope.container-4.9-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85feaa5edd78b5047a3e72f839fcc96b72c7d01e601df7ac1e504f3ea1f51d36 |
|
MD5 | 230a2d7e3d392a510a28205db68ba5be |
|
BLAKE2b-256 | ff5d159ccb25b318801ad3267a45804967b4f5f3b90c4a694ce3e7d8bec70825 |
Hashes for zope.container-4.9-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b6fd6b65a1055119812a83f86c16a0fcef08f07a3d2c87464cb31faefc7583 |
|
MD5 | bd3f0c8c9d489f1dc92e764d2961a357 |
|
BLAKE2b-256 | a2c5cb7477f331a30ae5752956e4687d9b051170fbdc9e8e9337877adb57c8b1 |
Hashes for zope.container-4.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c5e86a0f96ebaa7be701778ab6562cdf6fce1f006fd532e01a2b1e3f5e4fca |
|
MD5 | 0fe644af9e424113b186f5949e50eca9 |
|
BLAKE2b-256 | 7fcb3582b73992599c86b94158fb488f1983d1c296050ca421e663ad97931b13 |
Hashes for zope.container-4.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc822edce75940f12f7daa90d4a079e3e63764ab98688484eab53012c854f92 |
|
MD5 | 5e5ac8b5c4d6793d0549f4239f253eb8 |
|
BLAKE2b-256 | 7dd3639c3afed7a8cf175fb910aacd80d983fa4bb7e2dda3bb995287d4d0405f |
Hashes for zope.container-4.9-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 070e05b7980f6da688ce4660c1a4b4ca26d507c938a8fa866072b9e49b959b70 |
|
MD5 | 2bd2875b854257d26c9151991c720bfd |
|
BLAKE2b-256 | d69f178eee2268ce5db82778d97e5166acef5abd7a0a2b0d0635567ba08c19a9 |
Hashes for zope.container-4.9-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662c98d52d69cf1150f207c9dd0e4c49396755a51a4dd868e0f646df11ae10f5 |
|
MD5 | 912ab7dc996a23608d6c2f4ef94ac072 |
|
BLAKE2b-256 | 67714a497ad1a9111abe5697cbbabc68918597421257ce53c0f2ed006ead1cbc |
Hashes for zope.container-4.9-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7e2eb281cff22a5af62221e0e9e67577129ece371d8b5da25215227ea19f3b |
|
MD5 | b5da4adf07dfa1f859517cc8a82063e6 |
|
BLAKE2b-256 | 70a002373b1dc5a678463088236374e9c33f5ff857c2689394233c92604f5a5c |
Hashes for zope.container-4.9-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9103d673b5d53e24dcc312b02b8688442cc4be9259e53f2b39ce301c6ef58934 |
|
MD5 | cd9b85cc38aba92b4adc58a6d7a8c9e5 |
|
BLAKE2b-256 | e12953c0a6d83fc1d1857825c5138523ed9535d761994495b2588de5b283eb4d |
Hashes for zope.container-4.9-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880f0e2ddec9310740ebbb75cfdcd876f645901fe98a9ed691a72e826704b40d |
|
MD5 | 6fa4602cb310ffd9a16ad943ad983819 |
|
BLAKE2b-256 | d8a4ec8f3e81ac23e8976fa73a472efd7ba2d7c2fdafa380f0d7eb7d9f50f40e |
Hashes for zope.container-4.9-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec84956a2a0f18bbe47d8d40c58b1828fd80d489fe48a7577f654f1dd234396 |
|
MD5 | 06944ef3ae58e60e7620169b8d61c95c |
|
BLAKE2b-256 | 0c7d9c24d72896dc0dac1a2734300183ee75d5980a020f9bc660e35dd697f40d |
Hashes for zope.container-4.9-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acb0617ff82ecb32e6abb0e34eec230b1a49f4733506d3c8868b8762db42d8c |
|
MD5 | 7105239ecf9a44feb83967da2b16e308 |
|
BLAKE2b-256 | 038033cfdf6578c2423fffacef2cabab15d3c138c3cd78e1de03f814719d3f1d |
Hashes for zope.container-4.9-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7581f20a73e2b56f65d9e35f9a63fb978d8a0462bb772eff2584f487d729d147 |
|
MD5 | 23252bdda15ded2159a0191a1dd3d9fc |
|
BLAKE2b-256 | 5c05a0a5909a5f563bacfc6815caeb42b9d7e283548bec959bd3c305266f2c83 |
Hashes for zope.container-4.9-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e30cf5c3f0e536f8de667e29d5b3f32c7b73acd82bf7cc0cf6f49e23f0eafc0 |
|
MD5 | a64f57f41251b5cc22fb55ce7244dabc |
|
BLAKE2b-256 | 77d2dac8f2d948aa7abcaf51ed0d93a2151bca160e94faee0476f9f104a7aca5 |
Hashes for zope.container-4.9-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fd4b0ffa3a7695c000491deb45406c611dc84b802a8fe5dbca8bf374dac2fc |
|
MD5 | 685f128d936a945955d6890aea946df1 |
|
BLAKE2b-256 | 8b77d8270b84f87e6d06eb21bc0661abc740406cf04011bdefb1891d23520ac9 |
Hashes for zope.container-4.9-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3192544b5266d86280553e29a103f1c24c9a3b0ad7e971c563ee3044f5ba4fc6 |
|
MD5 | 082215fc3fcf817a600d74c4aa7af7c4 |
|
BLAKE2b-256 | 8080803e6af97c0060ae236ef2551828a6e8f91a8c51821e1d7363428a730cb9 |
Hashes for zope.container-4.9-cp27-cp27m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a352dc9bb9599a9d2dae7fd0c5f6b64d779119ff541dd7def084ac04ceb51d |
|
MD5 | 35e1a69d6580c67b4083b29a84eca34b |
|
BLAKE2b-256 | 810fe2386e4f3563b12b7498627a41b83ad88ca92aeacbd68a512ffc705f892f |