diff options
author | Joar Wandborg <git@wandborg.com> | 2012-10-14 13:46:31 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2012-10-14 13:46:31 +0200 |
commit | 7742dcc1fbda04c3a1c76a057a1a93a8f504502e (patch) | |
tree | 6b07eb54c43230d0810d9241df02558a88cd754e /mediagoblin/tools/pluginapi.py | |
parent | a817fb76b1a9f6412cd36ddbef8a9f7a35cb6615 (diff) | |
download | mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.tar.lz mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.tar.xz mediagoblin-7742dcc1fbda04c3a1c76a057a1a93a8f504502e.zip |
Switched most stuff over from Routes
Removed the Routes routing functionality and replaced it with
werkzeug.routes. Most views are functional.
Known issues:
- Translation integration with the request object is not yet figured
out. This breaks 404 pages.
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r-- | mediagoblin/tools/pluginapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/pluginapi.py b/mediagoblin/tools/pluginapi.py index 7c1e108b..df3f51c4 100644 --- a/mediagoblin/tools/pluginapi.py +++ b/mediagoblin/tools/pluginapi.py @@ -162,7 +162,7 @@ def register_routes(routes): Be careful when designing your route urls. If they clash with core urls, then it could result in DISASTER! """ - if isinstance(routes, (tuple, list)): + if isinstance(routes, list): for route in routes: PluginManager().register_route(route) else: |