コード例 #1
0
ファイル: pdmobject.py プロジェクト: bska/ResInsight
    def _execute_command(self, **command_params):
        self.__warnings = []
        response, call = self._commands.Execute.with_call(
            Commands_pb2.CommandParams(**command_params))
        for key, value in call.trailing_metadata():
            value = value.replace(";;", "\n")
            if key == "warning":
                self.__warnings.append(value)

        return response
コード例 #2
0
ファイル: instance.py プロジェクト: ysx1993/ResInsight
 def __execute_command(self, **command_params):
     return self.commands.Execute(
         Commands_pb2.CommandParams(**command_params))
コード例 #3
0
ファイル: Commands.py プロジェクト: cxz/ResInsight
 def __execute(self, **commandParams):
     return self.commands.Execute(Cmd.CommandParams(**commandParams))