From: Sebastian Spaeth Date: Thu, 29 Nov 2012 10:27:59 +0000 (+0100) Subject: Make ENABLED_MEDDLEWARES a list and not a tuple, so we can modify it X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a30fb1d89d11a0afddaf2bb8297a51db6d9e75db;p=mediagoblin.git Make ENABLED_MEDDLEWARES a list and not a tuple, so we can modify it Plugins may want to insert meddlewares, so this list should be modifiable at very list (if we don't want to provide helper methods for this, which seems a tad overkill for now). This change is required for the upcoming trim_whitespace plugin. Signed-off-by: Sebastian Spaeth --- diff --git a/mediagoblin/meddleware/__init__.py b/mediagoblin/meddleware/__init__.py index fab28f71..886c9ad9 100644 --- a/mediagoblin/meddleware/__init__.py +++ b/mediagoblin/meddleware/__init__.py @@ -14,9 +14,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -ENABLED_MEDDLEWARE = ( +ENABLED_MEDDLEWARE = [ 'mediagoblin.meddleware.csrf:CsrfMeddleware', - ) + ] class BaseMeddleware(object):