Changeset 8460 in genesis


Ignore:
Timestamp:
Sep 15, 2010, 8:27:03 AM (14 years ago)
Author:
rick
Message:

Fixed prefix 'Node' does not could as proxies get included in this list as
well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nodes/make-map.py

    r8321 r8460  
    192192      <description>All active nodes</description>
    193193      <Placemark>
    194         <name>Node %(name)s</name>
     194        <name>%(nodetype)s %(nodename)s</name>
    195195        <description>%(desc)s</description>
    196196        <styleUrl>%(style)s</styleUrl>
    197197        <Point><coordinates>%(lam)s,%(phi)s,0</coordinates></Point>
    198198      </Placemark>
    199    """ % {'name' : host, 'desc' : cgi.escape(datadump['location']), 'style' : '#node_status_' + node_status, 'lam' : lam, 'phi' : phi})
     199   """ % {'nodetype' : datadump['nodetype'], 'nodename' : datadump['nodename'], 'desc' : cgi.escape(datadump['location']), 'style' : '#node_status_' + node_status, 'lam' : lam, 'phi' : phi})
    200200      nodes += [("POINT(%s, %s)" % (lam, phi))]
    201201  except (KeyError, ValueError), e:
Note: See TracChangeset for help on using the changeset viewer.