Permalink
Browse files

Alphabetized known layers for reading sanity

  • Loading branch information...
1 parent fbee7d0 commit f0f067045dc1bc493ffaf152944ee6e1fecdc304 Michal Migurski committed Apr 13, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 TileStache/__init__.py
  2. +1 −1 scripts/tilestache-render.py
  3. +1 −1 scripts/tilestache-seed.py
@@ -170,7 +170,7 @@ def requestHandler(config, path_info, query_string):
layername, coord, extension = splitPathInfo(path_info)
if layername not in config.layers:
- raise Core.KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (layername, ', '.join(config.layers.keys())))
+ raise Core.KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (layername, ', '.join(sorted(config.layers.keys()))))
query = parse_qs(query_string or '')
layer = config.layers[layername]
@@ -57,7 +57,7 @@
config = parseConfigfile(options.config)
if options.layer not in config.layers:
- raise KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (options.layer, ', '.join(config.layers.keys())))
+ raise KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (options.layer, ', '.join(sorted(config.layers.keys()))))
layer = config.layers[options.layer]
@@ -118,7 +118,7 @@ def generateCoordinates(ul, lr, zooms, padding):
config.cache = Disk(options.outputdirectory, dirs='portable', gzip=[])
if options.layer not in config.layers:
- raise KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (options.layer, ', '.join(config.layers.keys())))
+ raise KnownUnknown('"%s" is not a layer I know about. Here are some that I do know about: %s.' % (options.layer, ', '.join(sorted(config.layers.keys()))))
layer = config.layers[options.layer]

0 comments on commit f0f0670

Please sign in to comment.