- Timestamp:
- Apr 7, 2012, 12:03:25 PM (13 years ago)
- Location:
- tools
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10368 r10378 31 31 import time 32 32 import rdnap 33 import make_network_kml 33 34 from pprint import pprint 34 35 from collections import defaultdict … … 731 732 732 733 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]: 734 738 if is_text_request(): 735 739 output += "Content-type:text/plain\r\n\r\n" … … 1101 1105 if datadump['status'] == "up": 1102 1106 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() 1104 1112 usage() 1105 1113 else:
Note:
See TracChangeset
for help on using the changeset viewer.