From: Brian Warner Date: Tue, 5 Dec 2006 19:51:32 +0000 (-0700) Subject: webish: add queen pburl and connection status to welcome page X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~447 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/module-simplejson-index.html?a=commitdiff_plain;h=3e01ef171a365cfaf9c632649137a6e8307c2909;p=tahoe-lafs%2Ftahoe-lafs.git webish: add queen pburl and connection status to welcome page --- diff --git a/allmydata/web/welcome.xhtml b/allmydata/web/welcome.xhtml index 9c0fda17..8ceb6c6f 100644 --- a/allmydata/web/welcome.xhtml +++ b/allmydata/web/welcome.xhtml @@ -13,6 +13,8 @@

Mesh Status

+
Queen:
+
Connected to queen?:
Known Peers:
Connected Peers:
diff --git a/allmydata/webish.py b/allmydata/webish.py index 83eb8b15..2346e0f9 100644 --- a/allmydata/webish.py +++ b/allmydata/webish.py @@ -52,6 +52,12 @@ class Welcome(rend.Page): 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)