repoze.bfg.traversalwrapper
An alternate implementation of the repoze.bfg.interfaces.ITraverserFactory (a “traverser”) which wraps each traversed object in a proxy. This allows a “location-ignorant” model (a model which does not possess intrinsic __name__ and __parent__ attributes) to be used as the root object and as any object returned from any other model’s __getitem__ method during traversal.
When this ITraverserFactory is registered as the traverser for a repoze.bfg application, during traversal, each object, including the root object is wrapped in a proxy. The proxy that provides the traversed object with a __name__ and __parent__ attribute. The __name__ and __parent__ attributes of the root proxy are both None. The __name__ of subsequently traversed object is the Unicode URL segment name which was used to look it up. The __parent__ of subsequently traversed objects is the previous object traversed.
In order to enable this package’s ITraverserFactory, register the repoze.bfg.traversalwrapper.ModelGraphTraverser as the traversal policy, rather than the default ModelGraphTraverser. To use this feature, your application will need to have a dependency on this package, as well as following stanza in its configure.zcml:
<adapter
factory="repoze.bfg.traversalwrapper.ModelGraphTraverser"
provides="repoze.bfg.interfaces.ITraverserFactory"
for="*"
/>
repoze.bfg.traversalwrapper Changelog
0.3 (2009-06-22)
Compatibility with BFG 1.0a1. This version is not guaranteed to be compatible with any BFG version before 1.0a1.
0.2 (2008-05-18)
Use dictionary return values from our ITraverser in lockstep with changes to 0.8dev.
0.1
Initial release (functionality moved out of BFG core).
Metadata
Release files for repoze.bfg.traversalwrapper 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repoze.bfg.traversalwrapper-0.3.tar.gz | 11.1 kB | Without provenance | Details for repoze.bfg.traversalwrapper-0.3.tar.gz |
Release files / repoze.bfg.traversalwrapper-0.3.tar.gz
| Download URL | repoze.bfg.traversalwrapper-0.3.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e6fb4a81426b3a5b309182a60ee951897c6fc7dd012961ff53799af5dba19f8
|
|
BLAKE2b-256 checksum How to use checksums |
1fa5b535bf6772b29cc2145f952238f07032c977c999af6d096a51fa636e8236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for repoze.bfg.traversalwrapper 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.