Add base class for Meddleware
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 25 Nov 2011 21:16:18 +0000 (22:16 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 25 Nov 2011 21:16:18 +0000 (22:16 +0100)
commit56dc1c9d3eb73b86bf8e165ffc79ad4929239603
treea57858274c126acc71fededf7a8c6663d4a05619
parent1b7662012f4f0827d01cc8747ce710b3e4dc6b81
Add base class for Meddleware

Created a BaseMeddleware which all Meddleware should derive
from. This is not strictly needed, but will greatly help.

The base class has the common __init__ of all the other
Meddlwares and fall backs for all hooks. That way a new
Meddlware only needs to override what it actually wants to
implement.
mediagoblin/meddleware/__init__.py
mediagoblin/meddleware/csrf.py
mediagoblin/meddleware/noop.py
mediagoblin/tests/tools.py