X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bin%2Fplc-kml.py;h=3b0b8c62645398d88fe512289aeccddf33dadfef;hb=82d099c7771dd3517bb300552e5b182f49bb27bc;hp=2a1ecf9ebd5fe6cd10a5852d236f64145e9a5543;hpb=6469aed9563248b2d3c78a1b48ad35f0b4d343a3;p=myplc.git diff --git a/bin/plc-kml.py b/bin/plc-kml.py index 2a1ecf9..3b0b8c6 100755 --- a/bin/plc-kml.py +++ b/bin/plc-kml.py @@ -1,7 +1,5 @@ #!/usr/bin/env plcsh # -# $Id$ - # this script generates a kml file, located under the default location below # you should crontab this job from your myplc image # you can then use the googlemap.js javascript for creating your applet @@ -103,35 +101,67 @@ class KmlMap: peer_id=site['peer_id'] # open description - description='
" + description += "Testbed" + description += " | " + if peer_id: + peername = 'PlanetLab Central' + peerurl = 'http://www.planet-lab.org' + #self.peer_name(site,peers) + else: + peername = 'PlanetLab Europe' + peerurl = 'http://www.planet-lab.eu' + description += " %(peername)s "%locals() + #description += "[description]"%locals() + description += " | " + if peer_id: + description += ""%locals() + else: + description += ""%locals() + description += " |
" + description += "Website" + description += " | " + description += " %(site_url)s "%locals() + description += " | |
Usage details: | ||
" + description += ""%locals() + description += " | "
if nb_nodes:
- description += ' | |
" + description += ""%locals() + description += " | "
if nb_slices:
- description += ' | |