Changeset 10378 in genesis for tools


Ignore:
Timestamp:
Apr 7, 2012, 12:03:25 PM (13 years ago)
Author:
rick
Message:

gformat allow creating network.kml

Location:
tools
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10368 r10378  
    3131import time
    3232import rdnap
     33import make_network_kml
    3334from pprint import pprint
    3435from collections import defaultdict
     
    731732
    732733  output = ""
    733   if not uri[0]:
     734  if base_uri.endswith('/create/network.kml'):
     735      output += "Content-type:application/vnd.google-earth.kml+xml\r\n\r\n"
     736      output += make_network_kml.make_graph()
     737  elif not uri[0]:
    734738    if is_text_request():
    735739      output += "Content-type:text/plain\r\n\r\n"
     
    11011105       if datadump['status'] == "up":
    11021106         print system
    1103     else:
     1107    elif sys.argv[1] == "create":
     1108      if sys.argv[2] == "network.kml":
     1109        print make_network_kml.make_graph()
     1110      else:
     1111       usage()
    11041112      usage()
    11051113  else:
Note: See TracChangeset for help on using the changeset viewer.