Webapp2

Latest version: v2.5.2

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

Scan your dependencies

Page 4 of 7

1.7.2

=============================
- Response is now compatible with latest WebOb.

- Increased Response compatibility with webapp, implementing wsgi_write() and
has_error().

- Changed some status messages to be the same as webapp:
- 203: 'Non-Authoritative Information'
- 302: 'Moved Temporarily'
- 306: 'Unused'
- 408: 'Request Time-out'
- 414: 'Request-URI Too Large'
- 504: 'Gateway Time-out'
- 505: 'HTTP Version not supported'

- Copied Request from webapp, so that when using webapp2 outside of the SDK
they are the same.

- Routes now match the Request path unquoted. See App Engine issue 2636
for an explanation.

1.7.1

=============================
- Added standalone redirect() function.

- RequestHandler.redirect and redirect_to now return a response object.

- Fixed: multiple routes that define methods are tried before MethodNotAllowed
is raised.

- Updated webapp2_extras.protorpc to work with latest ProtoRPC.

1.7

==========================
- Added a simple configuration object for WSGIapplication, available in the
config attribute. Extras modules that use configuration (i18n, jinja2,
sessions) don't require app.config to be set manually anymore. Still, the
`secret_key` key config for sessions, if not defined, will result in an
exception.

- Deprecated webapp2_extras.config, replaced by the simpler app dict.

- Router no longer receives app on construction, for consistency with the
config object. App is set as global before router is initialized.

- Fixed a bug in webapp2_extras.sessions that made it not save the session
when it was empty (like when flashes are popped).

- Added standalone uri_for function, to be used in templates.

1.6.3

============================
- Added webapp2_extras.local_app, with the WSGIApplication previously in
webapp2_extras.local. This allows using LocalProxy on App Engine, without
actually monkeypatching the WSGI app for threaded environments.

- Route now raises exc.HTTPMethodNotAllowed if methods are set and the request
method doesn't match.

- Router.default_matcher() now raises exc.HTTPNotFound if no route matches.

1.6.2

============================
- WSGIApplication.__call__ checks if the dispatcher didn't return None to
accept the returned value as a response. Previously it checked if it was an
instance of Response.

- To support returned response, RequestHandler.dispatch() returns the result of
the dispatched method.

1.6.1

============================
- Fixed an indentation bug in webapp2_extras.users.

- Added back _to_utf8() to convert values for import_string() and urlunsplit().

- Added WSGIApplication.get_response(), a convenience for unit tests.

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.