diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-11-29 14:29:43 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-11-29 14:29:43 +0100 |
commit | f52301d26166b706cbbbe854c83fda3a06e6be9b (patch) | |
tree | 00ad373bf970b5f5948ae05d8f7fa655423022a2 /mediagoblin/tools/pluginapi.py | |
parent | efb70b529f3c04054e4453144155b18a8400281b (diff) | |
parent | 60389b21f5d24acf6faf08c225da16b3f8d7de18 (diff) | |
download | mediagoblin-f52301d26166b706cbbbe854c83fda3a06e6be9b.tar.lz mediagoblin-f52301d26166b706cbbbe854c83fda3a06e6be9b.tar.xz mediagoblin-f52301d26166b706cbbbe854c83fda3a06e6be9b.zip |
Merge remote-tracking branch 'spaetz/formerge/507_remove_routes'
* spaetz/formerge/507_remove_routes:
Purge routes package from MG (#507)
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r-- | mediagoblin/tools/pluginapi.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mediagoblin/tools/pluginapi.py b/mediagoblin/tools/pluginapi.py index 1752dfc8..38ab631b 100644 --- a/mediagoblin/tools/pluginapi.py +++ b/mediagoblin/tools/pluginapi.py @@ -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') ... ]) |