Exemplo n.º 1
0
def importUsabilityFile(importFile, session_id=None):
  parser = xml.sax.make_parser()
  handler = UsabilityContentHandler()
  parser.setContentHandler(handler)
  parser.setEntityResolver(handler)
  parser.parse(importFile)
  return importUsability(handler.personas(),handler.externalDocuments(),handler.documentReferences(),handler.conceptReferences(),handler.personaCharacteristics(),handler.taskCharacteristics(),handler.tasks(),handler.usecases(), session_id=session_id)
Exemplo n.º 2
0
def importUsabilityFile(importFile,session_id = None):
  try:
    parser = xml.sax.make_parser()
    handler = UsabilityContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    return importUsability(handler.personas(),handler.externalDocuments(),handler.documentReferences(),handler.conceptReferences(),handler.personaCharacteristics(),handler.taskCharacteristics(),handler.tasks(),handler.usecases(),session_id=session_id)
  except xml.sax.SAXException, e:
    raise ARMException("Error parsing" + importFile + ": " + e.getMessage())
Exemplo n.º 3
0
def importUsabilityFile(importFile,session_id = None):
  try:
    parser = xml.sax.make_parser()
    handler = UsabilityContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    return importUsability(handler.personas(),handler.externalDocuments(),handler.documentReferences(),handler.conceptReferences(),handler.personaCharacteristics(),handler.taskCharacteristics(),handler.tasks(),handler.usecases(),session_id=session_id)
  except xml.sax.SAXException, e:
    raise ARMException("Error parsing" + importFile + ": " + e.getMessage())
Exemplo n.º 4
0
def importUsabilityFile(importFile):
    parser = xml.sax.make_parser()
    handler = UsabilityContentHandler()
    parser.setContentHandler(handler)
    parser.setEntityResolver(handler)
    parser.parse(importFile)
    return importUsability(handler.personas(), handler.externalDocuments(),
                           handler.documentReferences(),
                           handler.conceptReferences(),
                           handler.personaCharacteristics(),
                           handler.taskCharacteristics(), handler.tasks(),
                           handler.usecases())