Padding on the header-dropdown area
[mediagoblin.git] / mediagoblin / edit / routing.py
index bf0b24987fc1816aa069fb6fd6c216cf51708b61..3592f70824cdc8d967558b07c111a97aa3513f02 100644 (file)
@@ -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
 # 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.tools.routing import add_route
 
-from routes.route import Route
-
-edit_routes = [
-    # Media editing view handled in user_pages/routing.py
-]
+add_route('mediagoblin.edit.profile', '/u/<string:user>/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')