274 def LoadProc(self,xmlFile):
275 """
276 load an XML graph in a YACS::ENGINE::proc, create a CORBA servant
277 associated to the proc, and return a ref on the servant.
278 """
279 try:
280 procExec_i = proc_i(xmlFile)
281 logger=procExec_i.p.getLogger("parser")
282 if not logger.isEmpty():
283 print("The imported file has errors :")
284 print(logger.getStr())
285 sys.stdout.flush()
286 return None
287 except IOError as ex:
288 print("IO Error: ", ex, file=sys.stderr)
289 return None
290 except ValueError as ex:
291 print("Caught ValueError Exception:",ex, file=sys.stderr)
292 return None
293 except pilot.Exception as ex:
294 print(ex.what(), file=sys.stderr)
295 return None
296 except:
297 traceback.print_exc()
298 return None
299 procExec_o = procExec_i._this()
300 return procExec_o
301