Skip to content
This repository
Browse code

Alphabetized known layers for reading sanity

  • Loading branch information...
commit f0f067045dc1bc493ffaf152944ee6e1fecdc304 1 parent fbee7d0
authored April 13, 2011
2  TileStache/__init__.py
@@ -170,7 +170,7 @@ def requestHandler(config, path_info, query_string):
170 170
         layername, coord, extension = splitPathInfo(path_info)
171 171
         
172 172
         if layername not in config.layers:
173  
-            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())))
  173
+            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()))))
174 174
         
175 175
         query = parse_qs(query_string or '')
176 176
         layer = config.layers[layername]
2  scripts/tilestache-render.py
@@ -57,7 +57,7 @@
57 57
         config = parseConfigfile(options.config)
58 58
         
59 59
         if options.layer not in config.layers:
60  
-            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())))
  60
+            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()))))
61 61
         
62 62
         layer = config.layers[options.layer]
63 63
         
2  scripts/tilestache-seed.py
@@ -118,7 +118,7 @@ def generateCoordinates(ul, lr, zooms, padding):
118 118
             config.cache = Disk(options.outputdirectory, dirs='portable', gzip=[])
119 119
 
120 120
         if options.layer not in config.layers:
121  
-            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())))
  121
+            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()))))
122 122
 
123 123
         layer = config.layers[options.layer]
124 124
 

0 notes on commit f0f0670

Please sign in to comment.
Something went wrong with that request. Please try again.