<h2>Grid Status</h2>
<div>My nodeid: <span n:render="string" n:data="my_nodeid" /></div>
-<div>My version: <span n:render="string" n:data="version" /></div>
+<div>My versions: <span n:render="string" n:data="version" /></div>
+<div>Tahoe code imported from: <span n:render="string" n:data="import_path" /></div>
<div>Introducer: <span n:render="string" n:data="introducer_furl" /></div>
<div>Connected to introducer?: <span n:render="string" n:data="connected_to_introducer" /></div>
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
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)