370be295aa5e410cfdea7fd9d74a4866efc03e07
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
9 def add_routes_hook(map, *args
, **kwargs
):
10 """Hook to inject some of our behavior into the routes configuration."""
11 # These are the GTS URLs
12 map.connect('/pokemondpds/worldexchange/{page}.asp', controller
='gts', action
='dispatch')
13 map.connect('/pokemondpds/common/{page}.asp', controller
='gts', action
='dispatch')
16 class GTSPlugin(PluginBase
):
17 def controllers(self
):
19 gts
= splinext
.gts
.controllers
.gts
.GTSController
,
24 ('routes_mapping', Priority
.NORMAL
, add_routes_hook
),