Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove _paged views.

We no longer need separate _paged views when using 'page' as a
GET parameter. It is just appended to the URl now, as opposed
to being a part of it.
  • Loading branch information...
commit a854f5e3a7cdfb1c16f5611d8909c90d6856edc6 1 parent baf075e
@antzucaro authored
Showing with 0 additions and 30 deletions.
  1. +0 −30 xonstat/__init__.py
View
30 xonstat/__init__.py
@@ -28,20 +28,11 @@ def main(global_config, **settings):
config.add_view(stats_submit, route_name="stats_submit")
# PLAYER ROUTES
- config.add_route("player_game_index_paged",
- "/player/{player_id:\d+}/games/page/{page:\d+}")
- config.add_view(player_game_index, route_name="player_game_index_paged",
- renderer="player_game_index.mako")
-
config.add_route("player_game_index",
"/player/{player_id:\d+}/games")
config.add_view(player_game_index, route_name="player_game_index",
renderer="player_game_index.mako")
- config.add_route("player_index_paged", "/players/page/{page:\d+}")
- config.add_view(player_index, route_name="player_index_paged",
- renderer="player_index.mako")
-
config.add_route("player_index", "/players")
config.add_view(player_index, route_name="player_index",
renderer="player_index.mako")
@@ -59,10 +50,6 @@ def main(global_config, **settings):
config.add_view(game_index, route_name="game_index",
renderer="game_index.mako")
- config.add_route("game_index_paged", "/games/page/{page:\d+}")
- config.add_view(game_index, route_name="game_index_paged",
- renderer="game_index.mako")
-
config.add_route("game_info", "/game/{id:\d+}")
config.add_view(game_info, route_name="game_info",
renderer="game_info.mako")
@@ -71,15 +58,7 @@ def main(global_config, **settings):
config.add_view(rank_index, route_name="rank_index",
renderer="rank_index.mako")
- config.add_route("rank_index_paged", "/ranks/{game_type_cd:ctf|dm|tdm|duel}/page/{page:\d+}")
- config.add_view(rank_index, route_name="rank_index_paged",
- renderer="rank_index.mako")
-
# SERVER ROUTES
- config.add_route("server_index_paged", "/servers/page/{page:\d+}")
- config.add_view(server_index, route_name="server_index_paged",
- renderer="server_index.mako")
-
config.add_route("server_index", "/servers")
config.add_view(server_index, route_name="server_index",
renderer="server_index.mako")
@@ -94,10 +73,6 @@ def main(global_config, **settings):
renderer="server_info.mako")
# MAP ROUTES
- config.add_route("map_index_paged", "/maps/page/{page:\d+}")
- config.add_view(map_index, route_name="map_index_paged",
- renderer="map_index.mako")
-
config.add_route("map_index", "/maps")
config.add_view(map_index, route_name="map_index",
renderer="map_index.mako")
@@ -111,9 +86,4 @@ def main(global_config, **settings):
config.add_view(search, route_name="search",
renderer="search.mako")
- config.add_route("search_paged", "search/page/{page:\d+}")
- config.add_view(search, route_name="search_paged",
- renderer="search.mako")
-
-
return config.make_wsgi_app()
Please sign in to comment.
Something went wrong with that request. Please try again.