daemon/core/misc/xmlsession.py
def opensessionxml(session, filename, start=False, nodecls=nodes.CoreNode):
    ''' Import a session from the EmulationScript XML format.
    '''
    options = {'start': start, 'nodecls': nodecls}
    doc = core_document_parser(session, filename, options)
    if start:
        session.name = os.path.basename(filename)
        session.filename = filename
        session.node_count = str(session.getnodecount())
        session.instantiate()
 Import a session from the EmulationScript XML format.
    
Import a session from the EmulationScript XML format.
Import a session from the EmulationScript XML format .
def opensessionxml(session, filename, start=False, nodecls=nodes.CoreNode):
    options = {'start': start, 'nodecls': nodecls}
    doc = core_document_parser(session, filename, options)
    if start:
        session.name = os.path.basename(filename)
        session.filename = filename
        session.node_count = str(session.getnodecount())
        session.instantiate()
def opensessionxml ( session , filename , start = False , nodecls = nodes . CoreNode ) : options = { 'start' : start , 'nodecls' : nodecls } doc = core_document_parser ( session , filename , options ) if start : session . name = os . path . basename ( filename ) session . filename = filename session . node_count = str ( session . getnodecount ( ) ) session . instantiate ( )
Import a session from the EmulationScript XML format.
Import a session from the EmulationScript XML format .
''' Import a session from the EmulationScript XML format.
    '''
session
filename
start
nodecls