X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Fedit%2Frouting.py;h=75f5a6d8b48f6ed23c149c398a0419a89e6a32b1;hb=28eab59acef05b5f38052941483f900d2e78c50b;hp=9771207ab524d3a1528af20c8222006a1dd13f99;hpb=69a303a84ce3bc18e4e5a745a07a720fb7b0c73e;p=mediagoblin.git
diff --git a/mediagoblin/edit/routing.py b/mediagoblin/edit/routing.py
index 9771207a..75f5a6d8 100644
--- a/mediagoblin/edit/routing.py
+++ b/mediagoblin/edit/routing.py
@@ -1,5 +1,5 @@
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -14,10 +14,19 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
+from mediagoblin.tools.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")]
+add_route('mediagoblin.edit.profile', '/u//edit/',
+ 'mediagoblin.edit.views:edit_profile')
+add_route('mediagoblin.edit.legacy_edit_profile', '/edit/profile/',
+ 'mediagoblin.edit.views:legacy_edit_profile')
+add_route('mediagoblin.edit.account', '/edit/account/',
+ 'mediagoblin.edit.views:edit_account')
+add_route('mediagoblin.edit.delete_account', '/edit/account/delete/',
+ 'mediagoblin.edit.views:delete_account')
+add_route('mediagoblin.edit.pass', '/edit/password/',
+ 'mediagoblin.edit.views:change_pass')
+add_route('mediagoblin.edit.verify_email', '/edit/verify_email/',
+ 'mediagoblin.edit.views:verify_email')
+add_route('mediagoblin.edit.email', '/edit/email/',
+ 'mediagoblin.edit.views:change_email')