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>
This commit is contained in:
Sebastian Spaeth 2012-11-29 11:27:59 +01:00
parent d7d422ca04
commit a30fb1d89d

View File

@ -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):