mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-23 01:08:53 +00:00
dirnode.set_children: change return value: fire with self instead of None
This commit is contained in:
@ -415,7 +415,9 @@ class DirectoryNode:
|
||||
msg = "cannot pack unknown node as child %s" % str(name)
|
||||
raise CannotPackUnknownNodeError(msg)
|
||||
a.set_node(name, child_node, metadata)
|
||||
return self._node.modify(a.modify)
|
||||
d = self._node.modify(a.modify)
|
||||
d.addCallback(lambda ign: self)
|
||||
return d
|
||||
|
||||
def set_node(self, name, child, metadata=None, overwrite=True):
|
||||
"""I add a child at the specific name. I return a Deferred that fires
|
||||
|
Reference in New Issue
Block a user