Routes

Latest version: v2.5.1

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

Scan your dependencies

Page 4 of 8

1.9.2

============================
* Fixed bug in url_for which caused it to return a literal when it shouldn't
have.

1.9.1

=============================
* Fixed bug in formatted route recognition with formatting being absorbed
into the id.

1.9

===========================
* Fix undefined arg bug in url_for.
* Fixed bug with url_for not working properly outside of a request when
sub-domains are active. Thanks Pavel Skvazh.
* Add non-minimization option to Routes and the Mapper for generation and
recognition.
* Add Routes 2.0 style syntax for making routes and regexp. For example, this
route will now work: '{controller}/{action}/{id}'.
* Fixed Routes to not use quote_plus when making URL's.
* WARNING: Mapper now comes with hardcode_names set to True by default. This
means routes generated by name must work for the URL.
* Actually respect having urlcache disabled.
* WARNING: Calling url_for with a set of args that returns None now throws an
exception. Code that previously checked to see if a url could be made must
be updated accordingly.
* Updated url_for to return url in a literal for use in templating that may
try to escape it again.
* Added option to use X_FORWARDED_PROTO for proxying behind https to work
easier.
* Fixed map.resource to be less restrictive on id than just spaces.
* Fixed Mapper.create_regs not being thread safe, particularly when
always_scan=True.

1.8

============================
* Fixed bug of map.resource not allowing spaces in id.
* Fixed url generation to properly handle unicode defaults in addition to
unicode arguments.
* Fixed url_for to handle lists as keyword args when generating query
parameters.
* WARNING: Changed map.resource to not use ';', for actions, but the
normal '/'. This means that formatted URL's will also now have the format
come AFTER the action. Ie: /messsages/4.xml;rss -> /messages/4/rss.xml

1.7.3

==============================
* Fixed triple escaping bug, since WSGI servers are responsible for basic
unescaping.

1.7.2

===============================
* Fixed bug with keyword args not being coerced to raw string properly.

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.