def flattenString(request, root):
 io = StringIO()
 d = flatten(request, root, io.write)
 d.addCallback((lambda _: io.getvalue()))
 return d

def flattenString ( request , root ) : io = StringIO ( ) d = flatten ( request , root , io . write ) d . addCallback ( ( lambda _ : io . getvalue ( ) ) ) return d
collate a string representation of c{root} into a single string .