def grid_content_CONCATandRemove(self, namespace, container, listcontentSrc, contentDest): grid = ListenerGridAccess(namespace) tool = ListenerTools() listToRemove = [] buffer = "" for content in listcontentSrc: path = namespace + "/" + container + "/" + content b = grid.get_content(path); if b != "": self.printmsg("Read content " + content) buffer += b + "\n" listToRemove.append(path) self.printmsg("Create content " + contentDest) stream = io.BytesIO(buffer.encode("utf-8")) size = tool.getSizeStream(stream) grid.put_content(namespace + "/" + container + "/" + contentDest, stream, size) for path in listToRemove: self.printmsg("Remove temp content " + path) grid.remove_content(path)