aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/routing.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-051-3/+1
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-4/+4
|
* Fix urlparse import in tools/routing.pyBerker Peksag2015-08-011-1/+1
| | | | | | | urlparse is already a function, so we don't need to specify a module name. Refs #5339
* Import urlparse from six.moves to work on both Python 2 and 3.Berker Peksag2015-06-051-1/+3
|
* Fix #1056 - Add flag to accept URLs without a trailing slashJessica Tallon2014-12-121-3/+10
|
* Fix #1025 - Make API IDs IRIsJessica Tallon2014-11-211-0/+15
|
* Start to use six for basestring.Elrond2013-04-181-1/+2
| | | | | | six allows us to smoothly get more forward compatible with py3. The idea is to change things over to use six, when/if we feel a need for it.
* Rewrite routing using new MGRoute classElrond2012-12-231-12/+15
| | | | | | | | | | | MGRoute subclasses Rule(): Rule doesn't have a way to tag extra data, like the controller function, we need. So MGRoute has a new attribute .gmg_controller, which holds this. Rewrite everything to use this new Rule variant and drop all the other stuff that mapped endpoints to controller functions, mostly.
* Move things from routing.py to tools/routing.pyElrond2012-12-231-0/+63
This stops a cyclic import. Move add_route, mount and endpoint_to_controller into tools/routing.py and change all callers.