Commit ee5f34ae authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 63ae145f
......@@ -243,13 +243,13 @@ def Restructure(ztree, newStructure):
rlevel = rlevelv.pop(0)
if len(zrlevelv) == 0:
panic("TODO")
zlevel = zlevelv.pop(0)
zrlevel = zrlevelv.pop(0)
# XXX filter-out buckets
if len(zlevel) == len(level): # map 1-1
for (znode, node) in zip(zlevel, level):
node.Z = znode
if len(zrlevel) == len(rlevel): # map 1-1
for (zrn, rn) in zip(zrlevel, rlevel):
rn.node.Z = zrn.node
else:
panic("TODO")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment