<h2>Mesh Status</h2>
+<div>Queen: <span n:render="string" n:data="queen_pburl" /></div>
+<div>Connected to queen?: <span n:render="string" n:data="connected_to_queen" /></div>
<div>Known Peers: <span n:render="string" n:data="num_peers" /></div>
<div>Connected Peers: <span n:render="string" n:data="num_connected_peers" /></div>
addSlash = True
docFactory = getxmlfile("welcome.xhtml")
+ def data_queen_pburl(self, ctx, data):
+ return IClient(ctx).queen_pburl
+ def data_connected_to_queen(self, ctx, data):
+ if IClient(ctx).queen:
+ return "yes"
+ return "no"
def data_num_peers(self, ctx, data):
#client = inevow.ISite(ctx)._client
client = IClient(ctx)