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/edit/routing.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/edit/routing.py')
-rw-r--r-- | mediagoblin/edit/routing.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mediagoblin/edit/routing.py b/mediagoblin/edit/routing.py index 321c1f44..28b73d1e 100644 --- a/mediagoblin/edit/routing.py +++ b/mediagoblin/edit/routing.py @@ -14,13 +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/>. +from mediagoblin.routing import add_route -from routes.route import Route - -edit_routes = [ - # Media editing view handled in user_pages/routing.py - Route('mediagoblin.edit.profile', '/profile/', - controller="mediagoblin.edit.views:edit_profile"), - Route('mediagoblin.edit.account', '/account/', - controller="mediagoblin.edit.views:edit_account"), - ] +add_route('mediagoblin.edit.profile', '/edit/profile/', + 'mediagoblin.edit.views:edit_profile') +add_route('mediagoblin.edit.account', '/edit/account/', + 'mediagoblin.edit.views:edit_account') |