Introduction
rebecca.menu is component for pyramid, that provides management of menu urls.
Install
You can install rebecca.menu with pip.
$ pip install rebecca.menu
Usage
rebecca.menu provides include hook.:
config.include('rebecca.menu')
Permissions
Registering menu with permission
@route_menu_config('system')
class SystemMenu3(object):
route_name="menu3"
display_name = "system menu item3"
permission = 'menu3-permission'
get_menu check permission of request with has_permission, causes that menu_items includes menu items passed permission check.
Matchdict
If route has placeholder, the menu url fills values from request.matchdict.
config.add_route("menu1", 'menus/menu1/{testing_vars}')
menu_factory.add_item(route_name="menu1", display_name="testing-menu1")
When matchdict has values for testing_vars as “that-is-testing”, menu1’s url is “menus/menu1/that-is-testing”.
Contributors
Atsushi Odagiri, Original Author
Changelog
0.1 (2013-10-13)
first release
Metadata
Release files for rebecca.menu 0.1
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 |
|---|---|---|---|---|
| rebecca.menu-0.1.zip | 9.2 kB | Without provenance | Details for rebecca.menu-0.1.zip |
Security for rebecca.menu 0.1
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.