From: Brian Warner Date: Wed, 6 Feb 2008 03:08:49 +0000 (-0700) Subject: webish: display tahoe import path on the welcome page, to help figure out where the... X-Git-Tag: allmydata-tahoe-0.8.0~142 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/biz/?a=commitdiff_plain;h=4b4eba867b5e01bfbd458978c0d1bd47d3fdd003;p=tahoe-lafs%2Ftahoe-lafs.git webish: display tahoe import path on the welcome page, to help figure out where the code is coming from --- diff --git a/src/allmydata/web/welcome.xhtml b/src/allmydata/web/welcome.xhtml index 48dbf9aa..8bafa39f 100644 --- a/src/allmydata/web/welcome.xhtml +++ b/src/allmydata/web/welcome.xhtml @@ -17,7 +17,8 @@ tool may also be useful.

Grid Status

My nodeid:
-
My version:
+
My versions:
+
Tahoe code imported from:
Introducer:
Connected to introducer?:
diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index 31ef7b47..d5de20cc 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -11,6 +11,7 @@ from allmydata.util import fileutil, idlib import simplejson from allmydata.interfaces import IDownloadTarget, IDirectoryNode, IFileNode, \ IMutableFileNode +import allmydata # to display import path from allmydata import download from allmydata.upload import FileHandle, FileName from allmydata import provisioning @@ -1311,6 +1312,8 @@ class Root(rend.Page): def data_version(self, ctx, data): return get_package_versions_string() + def data_import_path(self, ctx, data): + return str(allmydata) def data_my_nodeid(self, ctx, data): return idlib.nodeid_b2a(IClient(ctx).nodeid)