def render_tinc(self, request): t = Tinc() output = '<h2>Tinc</h2>\n' output += '<h3>Server</h3>\n' output += '<p>name: %s ip: %s address: %s</p>\n' % (t.name, t.subnet, t.address) output += '<h3>Peers</h3>\n' output += self.render_tincpeers(request, t) return output
def __init__(self): Resource.__init__(self) self.tinc = Tinc()
def __init__(self): Resource.__init__(self) self._dundi = Dundi() self._tinc = Tinc()