Merge remote-tracking branch 'spaetz/formerge/507_remove_routes'

* spaetz/formerge/507_remove_routes:
  Purge routes package from MG (#507)
This commit is contained in:
Elrond 2012-11-29 14:29:43 +01:00
commit f52301d261
2 changed files with 4 additions and 8 deletions

View File

@ -68,8 +68,6 @@ Software Stack
* `WebOb <http://pythonpaste.org/webob/>`_: nice abstraction layer
from HTTP requests, responses and WSGI bits
* `Routes <http://routes.groovie.org/>`_: for URL routing
* `Beaker <http://beaker.groovie.org/>`_: for handling sessions and
caching

View File

@ -145,16 +145,14 @@ def register_routes(routes):
Example passing in a single route:
>>> from routes import Route
>>> register_routes(Route('about-view', '/about',
... controller=about_view_handler))
>>> register_routes(('about-view', '/about',
... 'mediagoblin.views:about_view_handler'))
Example passing in a list of routes:
>>> from routes import Route
>>> register_routes([
... Route('contact-view', '/contact', controller=contact_handler),
... Route('about-view', '/about', controller=about_handler)
... ('contact-view', '/contact', 'mediagoblin.views:contact_handler'),
... ('about-view', '/about', 'mediagoblin.views:about_handler')
... ])