Rewrite routing using new MGRoute class
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 15 Dec 2012 23:45:57 +0000 (00:45 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 23 Dec 2012 11:26:34 +0000 (12:26 +0100)
commit05501c5742c85d0e2c855a02800d1f50f9df6c3d
treed30ed348bf57afb1e939899b41d30b31850b0b9d
parent7880f03e2d9074c151306cbbdd7a247a020d8b55
Rewrite routing using new MGRoute class

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.
mediagoblin/app.py
mediagoblin/tools/routing.py