174e8db6f79b506aaa9b68b9c4401515a22ee6a6
1 from pkg_resources
import resource_filename
3 from pylons
import c
, session
5 from spline
.lib
.plugin
import PluginBase
6 from spline
.lib
.plugin
import PluginBase
, PluginLink
, Priority
7 import splinext
.gts
.controllers
.gts
8 import splinext
.gts
.controllers
.gts_browse
10 def add_routes_hook(map, *args
, **kwargs
):
11 """Hook to inject some of our behavior into the routes configuration."""
12 # These are the GTS URLs
13 map.connect('/pokemondpds/worldexchange/{page}.asp', controller
='gts', action
='dispatch')
14 map.connect('/pokemondpds/common/{page}.asp', controller
='gts', action
='dispatch')
17 map.connect('/gts', controller
='gts_browse', action
='list')
20 class GTSPlugin(PluginBase
):
21 def controllers(self
):
23 gts
= splinext
.gts
.controllers
.gts
.GTSController
,
24 gts_browse
= splinext
.gts
.controllers
.gts_browse
.GTSBrowseController
,
29 ('routes_mapping', Priority
.NORMAL
, add_routes_hook
),