vdrive.py: log a note when we successfully retrieve the global root directory

This commit is contained in:
Brian Warner 2007-07-16 20:17:06 -07:00
parent 0826b1bd34
commit 4db205b8b3
1 changed files with 2 additions and 0 deletions

View File

@ -45,10 +45,12 @@ class VirtualDrive(service.MultiService):
self._global_uri = f.read().strip()
f.close()
elif global_vdrive_furl:
self.parent.log("fetching global_uri")
d = tub.getReference(global_vdrive_furl)
d.addCallback(lambda vdrive_server:
vdrive_server.callRemote("get_public_root_uri"))
def _got_global_uri(global_uri):
self.parent.log("got global_uri")
self._global_uri = global_uri
f = open(global_uri_file, "w")
f.write(self._global_uri + "\n")