]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/webish.py
webish: display tahoe import path on the welcome page, to help figure out where the...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / webish.py
index 31ef7b471eafbc9462aeee8e14993edbd8bc3f7d..d5de20ccfed0d0a9ff6b9d415c6fcd730bcbe9b8 100644 (file)
@@ -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)