Esempio n. 1
0
def importProjectFile(importFile, session_id=None):
  parser = xml.sax.make_parser()
  handler = CairisContentHandler()
  parser.setContentHandler(handler)
  parser.setEntityResolver(handler)
  parser.parse(importFile)
  pSettings = handler.settings()
  envParameterSet = handler.environments()
  return importProjectData(pSettings,envParameterSet, session_id=session_id)
Esempio n. 2
0
def importProjectFile(importFile, session_id=None):
    parser = xml.sax.make_parser()
    handler = CairisContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    pSettings = handler.settings()
    envParameterSet = handler.environments()
    return importProjectData(pSettings, envParameterSet, session_id=session_id)
Esempio n. 3
0
def importProjectFile(importFile,session_id = None):
  try:
    parser = xml.sax.make_parser()
    handler = CairisContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    pSettings = handler.settings()
    envParameterSet = handler.environments()
    return importProjectData(pSettings,envParameterSet,session_id = session_id)
  except xml.sax.SAXException, e:
    raise ARMException("Error parsing" + importFile + ": " + e.getMessage())
Esempio n. 4
0
def importProjectFile(importFile,session_id = None):
  try:
    parser = xml.sax.make_parser()
    handler = CairisContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    pSettings = handler.settings()
    envParameterSet = handler.environments()
    return importProjectData(pSettings,envParameterSet,session_id = session_id)
  except xml.sax.SAXException, e:
    raise ARMException("Error parsing" + importFile + ": " + e.getMessage())