X-Git-Url: http://git.veekun.com/zzz-spline-gts.git/blobdiff_plain/6f00cb2960ea74e28ae24a22c2926c45ad5d5556..refs/tags/veekun-promotions/2010080801:/splinext/gts/__init__.py diff --git a/splinext/gts/__init__.py b/splinext/gts/__init__.py index 370be29..174e8db 100644 --- a/splinext/gts/__init__.py +++ b/splinext/gts/__init__.py @@ -5,6 +5,7 @@ from pylons import c, session from spline.lib.plugin import PluginBase from spline.lib.plugin import PluginBase, PluginLink, Priority import splinext.gts.controllers.gts +import splinext.gts.controllers.gts_browse def add_routes_hook(map, *args, **kwargs): """Hook to inject some of our behavior into the routes configuration.""" @@ -12,11 +13,15 @@ def add_routes_hook(map, *args, **kwargs): map.connect('/pokemondpds/worldexchange/{page}.asp', controller='gts', action='dispatch') map.connect('/pokemondpds/common/{page}.asp', controller='gts', action='dispatch') + # Web-side stuff + map.connect('/gts', controller='gts_browse', action='list') + class GTSPlugin(PluginBase): def controllers(self): return dict( gts = splinext.gts.controllers.gts.GTSController, + gts_browse = splinext.gts.controllers.gts_browse.GTSBrowseController, ) def hooks(self):