Beispiel #1
0
def _call_set_method(self, method_name, values):
    method_request = PdmObject_pb2.PdmObjectGetterRequest(
        object=self._pb2_object, method=method_name)
    request_iterator = self.__generate_set_method_chunks(values, method_request)
    reply = self._pdm_object_stub.CallPdmObjectSetter(request_iterator)
    if reply.accepted_value_count < len(values):
        raise IndexError
Beispiel #2
0
def _call_get_method_async(self, method_name):
    request = PdmObject_pb2.PdmObjectGetterRequest(object=self._pb2_object, method=method_name)
    for chunk in self._pdm_object_stub.CallPdmObjectGetter(request):
        yield chunk