diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-11-20 09:25:41 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-11-20 09:29:37 +0100 |
commit | 60389b21f5d24acf6faf08c225da16b3f8d7de18 (patch) | |
tree | 85bfd1bcfbedebd38227f507cd0632e8225f4052 /mediagoblin/tools/pluginapi.py | |
parent | 4d8a3cd808a309b250df40f64bb862fdb5ede434 (diff) | |
download | mediagoblin-60389b21f5d24acf6faf08c225da16b3f8d7de18.tar.lz mediagoblin-60389b21f5d24acf6faf08c225da16b3f8d7de18.tar.xz mediagoblin-60389b21f5d24acf6faf08c225da16b3f8d7de18.zip |
Purge routes package from MG (#507)
We were not actually using the routes package anymore, but it was
still mentioned in the documention. Adapt the plugin documentation to
actually represent reality, although I don't like the API design.
(but this is for another day)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
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') ... ]) |