--- home/omar/pc2/gs/tahoe-lafs/src/allmydata/web/root.py 2010-05-22 20:32:00.000000000 +0100 +++ media/disk3/gs/tahoe-lafs/src/allmydata/web/root.py 2010-06-17 20:43:00.000000000 +0100 @@ -353,3 +353,24 @@ class Root(rend.Page): T.input(type="submit", value="Report!"), ]] return T.div[form] + + # In case we configure multiple introducers + def data_introducers(self, ctx, data): + connection_status = self.client.connected_to_introducers() + s = [] + furls = self.client.introducer_furls + for furl in furls: + i = furls.index(furl) + if connection_status[i]: + s.append( (furl, "Yes") ) + else: + s.append( (furl, "No") ) + s.sort() + return s + + def render_introducers_row(self, ctx, s): + (furl, connected) = s + #connected = + ctx.fillSlots("introducer_furl", "%s" % (furl)) + ctx.fillSlots("connected", "%s" % (connected)) + return ctx.tag