Pyramid

Latest version: v2.0.2

Safety actively analyzes 638646 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 29 of 30

0.2.7

==================

- Add a ``request_type`` attribute to the available attributes of a
``bfg:view`` configure.zcml element. This attribute will have a value
which is a dotted Python path, pointing at an interface. If the request
object implements this interface when the view lookup is performed, the
appropriate view will be called. This is meant to allow for simple
"skinning" of sites based on request type. An event subscriber should
attach the interface to the request on ingress to support skins.

- Remove "template only" views. These were just confusing and were never
documented.

- Small url dispatch overhaul: the ``connect`` method of the
``urldispatch.RoutesMapper`` object now accepts a keyword parameter named
``context_factory``. If this parameter is supplied, it must be a
callable which returns an instance. This instance is used as the context
for the request when a route is matched.

- The registration of a RoutesModelTraverser no longer needs to be
performed by the application; it's in the bfg ZCML now.

0.2.6

==================

- Add event sends for INewRequest and INewResponse. See the events.rst
chapter in the documentation's ``api`` directory.

0.2.5

==================

- Add ``model_url`` API.

0.2.4

==================

- Added url-based dispatch.

0.2.3

==================

- Add API functions for authenticated_userid and effective_principals.

0.2.2

==================

- Add authenticated_userid and effective_principals API to security
policy.

Page 29 of 30

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.