Routes

Latest version: v2.5.1

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

Scan your dependencies

Page 2 of 8

2.1

==============================
* Fix 3 other route matching groups in route.py to use anonymous groups for
optional sections to avoid exceeding regex limits. Fixes 15.
* Printing a mapper now includes the Controller/action parameters from the
route. Fixes 11.
* Fix regression that didn't allow passing in params 'host', 'protocol', or
'anchor'. They can now be passed in with a trailing '_' as was possible
before commit d1d1742903fa5ca24ef848a6ae895303f2661b2a. Fixes 7.
* URL generation with/without SCRIPT_NAME was resulting in the URL cache
failing to return the appropriate cached URL generation. The URL cache
should always include the SCRIPT_NAME, even if its empty, in the cache
to avoid this, and now does. Fixes 6.
* Extract Route creation into separate method in Mapper. Subclasses of Route
can be created by Mappers now.
* Use the first X_FORWARDED_FOR value if there are multiple proxies in the
path. Fixes 5.

2.0

===============================
* Python 3.2/3.3 Support. Fixes Issue 2. Thanks to Alejandro Sánchez for
the pull request!

1.13

=============================
* Fix bug with dots forcing extension by default. The portion with the dot can
now be recognized. Patch by Michael Basnight.

1.12.3

=============================
* Fix bug with URLGenerator not properly including SCRIPT_NAME when generating
URL's and the singleton is not present.

1.12.2

============================
* Fix bug with routes URLGenerator not properly including SCRIPT_NAME when
generating qualified URL's.

1.12.1

===============================
* Fix bug with routes not generating URL's with callables in defaults.
* Fix bug with routes not handling sub-domain defaults during generation.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.