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.
This commit is contained in:
Joar Wandborg
2012-10-14 13:46:31 +02:00
parent a817fb76b1
commit 7742dcc1fb
11 changed files with 189 additions and 176 deletions

View File

@@ -14,11 +14,8 @@
# 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 routes.route import Route
from mediagoblin.routing import add_route
submit_routes = [
Route('mediagoblin.submit.start', '/',
controller='mediagoblin.submit.views:submit_start'),
Route('mediagoblin.submit.collection', '/collection',
controller='mediagoblin.submit.views:add_collection'),
]
add_route('mediagoblin.submit.start',
'/submit/', 'mediagoblin.submit.views:submit_start')
add_route('collection_home', '/submit/collection', 'mediagoblin.submit.views:add_collection')