Skip to content

Commit

Permalink
Python3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 29, 2015
1 parent 201c8cb commit dee80c4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tilecloud_chain/controller.py
Expand Up @@ -75,7 +75,7 @@ def main():
for grid in gene.config['grids'].values():
if 'obj' in grid:
del grid['obj']
print yaml.dump(gene.config)
print(yaml.dump(gene.config))
sys.exit(0)

if options.legends:
Expand Down Expand Up @@ -344,19 +344,22 @@ def _generate_apache_config(gene):
'bucket': cache['bucket'],
'folder': folder
}
f.write("""
f.write(
"""
<Proxy %(tiles_url)s*>
Order deny,allow
Allow from all
</Proxy>
ProxyPass %(location)s/ %(tiles_url)s
ProxyPassReverse %(location)s/ %(tiles_url)s
""" % {
'location': gene.config['apache']['location'],
'tiles_url': tiles_url
})
'location': gene.config['apache']['location'],
'tiles_url': tiles_url,
}
)
elif cache['type'] == 'filesystem':
f.write("""
f.write(
"""
Alias %(location)s %(files_folder)s
""" % {
'location': gene.config['apache']['location'],
Expand Down

0 comments on commit dee80c4

Please sign in to comment.