A pluggable breadcrumbs implementation based on adapters.
Project description
The z3c.breadcrumb package provides base classes for breadcrumb implementations. It allows you to write adapters for each content object which provides it’s own rules for providing the breadcrumb name, url and selection.
Detailed Documentation
README
The z3c.breadcrumb package provides base classes for breadcrumb implementations. It allows you to write adapters for each content object which provides it’s own rule for providing the breadcrumb name, url and selection.
Let’s do some imports we will use later.
>>> import zope.interface >>> import zope.component >>> from zope.publisher.interfaces.http import IHTTPRequest >>> from zope.publisher.browser import TestRequest >>> from zope.traversing.browser import absoluteURL >>> from zope.container import contained >>> from z3c.breadcrumb import interfaces >>> from z3c.breadcrumb import browser
CHANGES
3.0 (2023-02-24)
Drop support for Python 2.6, 2.7, 3.3, 3.4.
Add support for Python 3.7, 3.8, 3.9, 3.10, 3.11.
2.0.0 (2015-11-09)
Standardize namespace __init__
2.0.0a1 (2013-02-27)
Added support for Python 3.3.
Moved zope.app.testing dependency to zope.site.testing.
Moved zope.app.container dependency to zope.container.
Replaced deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.
Dropped support for Python 2.4 and 2.5.
1.1.1 (2010-12-12)
Added needed but not declated test dependency on zope.app.container.
Using Python’s doctest module instead of depreacted zope.testing.doctest.
1.1.0 (2009-05-29)
Feature: Added ability to register a Null-adapter as a breadcrumb. A null-breadcrumb will cause the item not to be displayed in the breadcrumbs.
1.0.3 (2008-12-13)
Bug: Fixed IBreadcrumbs to match implementation.
Clean up dependencies.
1.0.2 (2008-01-23)
Bug: Fixed the package’s long description.
Feature: Use the correct DocFileSuite class that counts tests properly.
1.0.1 (2007-01-21)
Bug: Test coverage brought up to 100%.
Feature: Register default IBreadcrumbs adapter.
Bug: Default IBreadcrumbs stops only on virtual host root, not on ISite object
1.0.0 (7/10/2007)
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 z3c.breadcrumb-3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f9635ee56e8b8be2d5eb5016dfaf20deecc2acdf57b122933f1994c945b596 |
|
MD5 | ce4d5ec5b633d1aa966a6541ff618b5f |
|
BLAKE2b-256 | d91cba648c9a52cfb44d94a87ceeee277e15fd76a77aae2e089e2fdfa0c74697 |