If view_permission (or its alias, permission) is passed to add_handler(), it will be used as the default permission for all views registered via the handler. Handler views can override this default permission via the action decorator.
Added two tests to exercise this new functionality on both types of add_handler() calls--i.e., with '{action}' in route path and with action as a keyword arg.
If
view_permission
(or its alias,permission
) is passed toadd_handler()
, it will be used as the default permission for all views registered via the handler. Handler views can override this default permission via theaction
decorator.Added two tests to exercise this new functionality on both types of
add_handler()
calls--i.e., with '{action}' in route path and withaction
as a keyword arg.References: https://github.com/Pylons/pyramid_handlers/issues/1