changeset 223:e412fad185ad

Merged with upstream
author Stephan Holl <stephan.holl@intevation.de>
date Wed, 27 Jul 2011 09:23:46 +0200
parents 316a2b3d4126 (diff) 671737e8edc2 (current diff)
children bef2e9522741
files
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python/generateHTML.py	Wed Jul 27 09:16:28 2011 +0200
+++ b/contrib/python/generateHTML.py	Wed Jul 27 09:23:46 2011 +0200
@@ -46,7 +46,7 @@
     png = mapfile.replace(".map", "_arcpy.png")
     print '''<li>Layer:  <strong>%s</strong></li>
 <br>
-<a target="bild" href="%s"><img witdth="80" height="60" border="" src="%s"></a>
+<a target="bild" href="file://%s"><img witdth="80" height="60" border="" src="file://%s"></a>
 Anzahl der Layer: %s
 ''' % (basename, png, png, len(layers))
     i = 0
@@ -84,9 +84,11 @@
         i = 0
         print "<ul>"
         while i < len(groups):
+	    if os.name == "nt":
+		mapfile = mapfile.replace('\\', '/')
             urlmapfile  = url + '?map=' + mapfile
             urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i]
-            print "<li><a href='%s'>%s</a></li>" % (urlmapfile, groups[i]) 
+	    print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i]) 
             i=i+1
         print "</ul>"
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)