projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813fdd7
)
vdrive.py: let put_file return the URI that was used for the file itself
author
Brian Warner
<warner@lothar.com>
Tue, 24 Apr 2007 08:41:40 +0000
(
01:41
-0700)
committer
Brian Warner
<warner@lothar.com>
Tue, 24 Apr 2007 08:41:40 +0000
(
01:41
-0700)
src/allmydata/vdrive.py
patch
|
blob
|
history
diff --git
a/src/allmydata/vdrive.py
b/src/allmydata/vdrive.py
index fb2756992c43566cc38abff45d0da3329d4417fd..5b9146d06f64957408d99de9ed7c8a2c499ac961 100644
(file)
--- a/
src/allmydata/vdrive.py
+++ b/
src/allmydata/vdrive.py
@@
-85,7
+85,9
@@
class VDrive(service.MultiService):
def _got_dir(dirnode):
d1 = ul.upload(uploadable)
def _add(uri):
- return dirnode.callRemote("add_file", name, uri)
+ d2 = dirnode.callRemote("add_file", name, uri)
+ d2.addCallback(lambda res: uri)
+ return d2
d1.addCallback(_add)
return d1
d.addCallback(_got_dir)