Example #1
0
 def _build_uploadable_and_finish(self, segments_and_bht, data, offset):
     """
     After the process has the plaintext segments, I build the
     TransformingUploadable that the publisher will eventually
     re-upload to the grid. I then invoke the publisher with that
     uploadable, and return a Deferred when the publish operation has
     completed without issue.
     """
     u = TransformingUploadable(data, offset, self._version[3],
                                segments_and_bht[0], segments_and_bht[1])
     p = Publish(self._node, self._storage_broker, self._servermap)
     return p.update(u, offset, segments_and_bht[2], self._version)
Example #2
0
 def _build_uploadable_and_finish(self, segments_and_bht, data, offset):
     """
     After the process has the plaintext segments, I build the
     TransformingUploadable that the publisher will eventually
     re-upload to the grid. I then invoke the publisher with that
     uploadable, and return a Deferred when the publish operation has
     completed without issue.
     """
     u = TransformingUploadable(data, offset,
                                self._version[3],
                                segments_and_bht[0],
                                segments_and_bht[1])
     p = Publish(self._node, self._storage_broker, self._servermap)
     return p.update(u, offset, segments_and_bht[2], self._version)