def _block(self):
    if ((self._container is None) or (self._cursor is None)):
        return self
    msg = ForwardMsg_pb2.ForwardMsg()
    msg.delta.new_block = True
    msg.metadata.parent_block.container = self._container
    msg.metadata.parent_block.path[:] = self._cursor.path
    msg.metadata.delta_id = self._cursor.index
    block_cursor = cursor.RunningCursor(path=(self._cursor.path + (self._cursor.index,)))
    block_dg = DeltaGenerator(container=self._container, cursor=block_cursor)
    self._cursor.get_locked_cursor(None)
    _enqueue_message(msg)
    return block_dg
def _block(self):
    if ((self._container is None) or (self._cursor is None)):
        return self
    msg = ForwardMsg_pb2.ForwardMsg()
    msg.delta.new_block = True
    msg.metadata.parent_block.container = self._container
    msg.metadata.parent_block.path[:] = self._cursor.path
    msg.metadata.delta_id = self._cursor.index
    block_cursor = cursor.RunningCursor(path=(self._cursor.path + (self._cursor.index,)))
    block_dg = DeltaGenerator(container=self._container, cursor=block_cursor)
    self._cursor.get_locked_cursor(None)
    _enqueue_message(msg)
    return block_dg