comparison contrib/python/generateHTML.py @ 222:316a2b3d4126

added switch for replacing backslashes in win32
author Stephan Holl <stephan.holl@intevation.de>
date Mon, 25 Jul 2011 12:37:08 +0200
parents a44d442577ca
children bef2e9522741
comparison
equal deleted inserted replaced
221:a44d442577ca 222:316a2b3d4126
82 if len(groups) > 1: 82 if len(groups) > 1:
83 print "Anzahl der Gruppen: %s" % len(groups) 83 print "Anzahl der Gruppen: %s" % len(groups)
84 i = 0 84 i = 0
85 print "<ul>" 85 print "<ul>"
86 while i < len(groups): 86 while i < len(groups):
87 if os.name == "nt":
88 mapfile = mapfile.replace('\\', '/')
87 urlmapfile = url + '?map=' + mapfile 89 urlmapfile = url + '?map=' + mapfile
88 urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i] 90 urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i]
89 print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i]) 91 print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i])
90 i=i+1 92 i=i+1
91 print "</ul>" 93 print "</ul>"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)