aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-29 11:27:59 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-01 20:19:43 +0100
commita30fb1d89d11a0afddaf2bb8297a51db6d9e75db (patch)
treeb1c21cc4e21618fd2216fd99327360686dcbf319
parentd7d422ca04b836cb0a5d87725d23a0b81f68ed7d (diff)
downloadmediagoblin-a30fb1d89d11a0afddaf2bb8297a51db6d9e75db.tar.lz
mediagoblin-a30fb1d89d11a0afddaf2bb8297a51db6d9e75db.tar.xz
mediagoblin-a30fb1d89d11a0afddaf2bb8297a51db6d9e75db.zip
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 <Sebastian@SSpaeth.de>
-rw-r--r--mediagoblin/meddleware/__init__.py4
1 files changed, 2 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
-ENABLED_MEDDLEWARE = (
+ENABLED_MEDDLEWARE = [
'mediagoblin.meddleware.csrf:CsrfMeddleware',
- )
+ ]
class BaseMeddleware(object):