<s> """<STR_LIT>""" <EOL> from __future__ import division <EOL> from vistrails . core . system import get_elementtree_library <EOL> from xml_dao import XMLDAO <EOL> from vistrails . db . versions . v0_9_5 . domain import * <EOL> ElementTree = get_elementtree_library ( ) <EOL> class DBPortSpecXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:type>' , None ) <EOL> type = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> optional = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> sort_key = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> sigstring = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBPortSpec ( id = id , <EOL> name = name , <EOL> type = type , <EOL> optional = optional , <EOL> sort_key = sort_key , <EOL> sigstring = sigstring ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , portSpec , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( portSpec . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( portSpec . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:type>' , self . convertToStr ( portSpec . db_type , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( portSpec . db_optional , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( portSpec . db_sort_key , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( portSpec . db_sigstring , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBModuleXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> cache = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> namespace = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> package = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> tag = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> location = None <EOL> functions = [ ] <EOL> annotations = [ ] <EOL> portSpecs = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT:location>' : <EOL> _data = self . getDao ( '<STR_LIT:location>' ) . fromXML ( child ) <EOL> location = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> functions . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> portSpecs . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBModule ( id = id , <EOL> cache = cache , <EOL> name = name , <EOL> namespace = namespace , <EOL> package = package , <EOL> version = version , <EOL> tag = tag , <EOL> location = location , <EOL> functions = functions , <EOL> annotations = annotations , <EOL> portSpecs = portSpecs ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , module , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( module . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module . db_cache , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( module . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module . db_namespace , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module . db_package , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( module . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module . db_tag , '<STR_LIT:str>' ) ) <EOL> location = module . db_location <EOL> if location is not None : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:location>' ) <EOL> self . getDao ( '<STR_LIT:location>' ) . toXML ( location , childNode ) <EOL> functions = module . db_functions <EOL> for function in functions : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( function , childNode ) <EOL> annotations = module . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> portSpecs = module . db_portSpecs <EOL> for portSpec in portSpecs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( portSpec , childNode ) <EOL> return node <EOL> class DBModuleDescriptorXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> package = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> namespace = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> base_descriptor_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> portSpecs = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> portSpecs . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBModuleDescriptor ( id = id , <EOL> name = name , <EOL> package = package , <EOL> namespace = namespace , <EOL> version = version , <EOL> base_descriptor_id = base_descriptor_id , <EOL> portSpecs = portSpecs ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , module_descriptor , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( module_descriptor . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( module_descriptor . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_descriptor . db_package , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_descriptor . db_namespace , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( module_descriptor . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_descriptor . db_base_descriptor_id , '<STR_LIT>' ) ) <EOL> portSpecs = module_descriptor . db_portSpecs <EOL> for portSpec in portSpecs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( portSpec , childNode ) <EOL> return node <EOL> class DBTagXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBTag ( id = id , <EOL> name = name ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , tag , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( tag . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( tag . db_name , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBPortXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT:port>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:type>' , None ) <EOL> type = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> moduleId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> moduleName = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> signature = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBPort ( id = id , <EOL> type = type , <EOL> moduleId = moduleId , <EOL> moduleName = moduleName , <EOL> name = name , <EOL> signature = signature ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , port , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT:port>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( port . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:type>' , self . convertToStr ( port . db_type , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( port . db_moduleId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( port . db_moduleName , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( port . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( port . db_signature , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBGroupXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> cache = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> namespace = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> package = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> tag = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> workflow = None <EOL> location = None <EOL> functions = [ ] <EOL> annotations = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> workflow = _data <EOL> elif child . tag == '<STR_LIT:location>' : <EOL> _data = self . getDao ( '<STR_LIT:location>' ) . fromXML ( child ) <EOL> location = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> functions . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBGroup ( id = id , <EOL> workflow = workflow , <EOL> cache = cache , <EOL> name = name , <EOL> namespace = namespace , <EOL> package = package , <EOL> version = version , <EOL> tag = tag , <EOL> location = location , <EOL> functions = functions , <EOL> annotations = annotations ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , group , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( group . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group . db_cache , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( group . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group . db_namespace , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group . db_package , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( group . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group . db_tag , '<STR_LIT:str>' ) ) <EOL> workflow = group . db_workflow <EOL> if workflow is not None : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( workflow , childNode ) <EOL> location = group . db_location <EOL> if location is not None : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:location>' ) <EOL> self . getDao ( '<STR_LIT:location>' ) . toXML ( location , childNode ) <EOL> functions = group . db_functions <EOL> for function in functions : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( function , childNode ) <EOL> annotations = group . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> return node <EOL> class DBLogXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> vistrail_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> workflow_execs = [ ] <EOL> machines = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> workflow_execs . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> machines . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBLog ( id = id , <EOL> version = version , <EOL> name = name , <EOL> workflow_execs = workflow_execs , <EOL> machines = machines , <EOL> vistrail_id = vistrail_id ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , log , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( log . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( log . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( log . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( log . db_vistrail_id , '<STR_LIT>' ) ) <EOL> workflow_execs = log . db_workflow_execs <EOL> for workflow_exec in workflow_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( workflow_exec , childNode ) <EOL> machines = log . db_machines <EOL> for machine in machines : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( machine , childNode ) <EOL> return node <EOL> class DBMachineXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> os = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> architecture = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> processor = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ram = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> obj = DBMachine ( id = id , <EOL> name = name , <EOL> os = os , <EOL> architecture = architecture , <EOL> processor = processor , <EOL> ram = ram ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , machine , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( machine . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( machine . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( machine . db_os , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( machine . db_architecture , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( machine . db_processor , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( machine . db_ram , '<STR_LIT:int>' ) ) <EOL> return node <EOL> class DBAddXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> what = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> objectId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjType = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = None <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT:location>' : <EOL> _data = self . getDao ( '<STR_LIT:location>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT:port>' : <EOL> _data = self . getDao ( '<STR_LIT:port>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBAdd ( data = data , <EOL> id = id , <EOL> what = what , <EOL> objectId = objectId , <EOL> parentObjId = parentObjId , <EOL> parentObjType = parentObjType ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , add , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( add . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( add . db_what , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( add . db_objectId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( add . db_parentObjId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( add . db_parentObjType , '<STR_LIT:str>' ) ) <EOL> data = add . db_data <EOL> if data is not None : <EOL> if data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT:location>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:location>' ) <EOL> self . getDao ( '<STR_LIT:location>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT:port>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:port>' ) <EOL> self . getDao ( '<STR_LIT:port>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> return node <EOL> class DBOtherXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:key>' , None ) <EOL> key = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> value = None <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT:value>' : <EOL> _data = self . convertFromStr ( child . text , '<STR_LIT>' ) <EOL> value = _data <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBOther ( id = id , <EOL> key = key , <EOL> value = value ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , other , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( other . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:key>' , self . convertToStr ( other . db_key , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBLocationXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT:location>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:x>' , None ) <EOL> x = self . convertFromStr ( data , '<STR_LIT:float>' ) <EOL> data = node . get ( '<STR_LIT:y>' , None ) <EOL> y = self . convertFromStr ( data , '<STR_LIT:float>' ) <EOL> obj = DBLocation ( id = id , <EOL> x = x , <EOL> y = y ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , location , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT:location>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( location . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:x>' , self . convertToStr ( location . db_x , '<STR_LIT:float>' ) ) <EOL> node . set ( '<STR_LIT:y>' , self . convertToStr ( location . db_y , '<STR_LIT:float>' ) ) <EOL> return node <EOL> class DBParameterXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> pos = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:type>' , None ) <EOL> type = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> val = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> alias = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBParameter ( id = id , <EOL> pos = pos , <EOL> name = name , <EOL> type = type , <EOL> val = val , <EOL> alias = alias ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , parameter , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( parameter . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( parameter . db_pos , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( parameter . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:type>' , self . convertToStr ( parameter . db_type , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( parameter . db_val , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( parameter . db_alias , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBPluginDataXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:data>' , None ) <EOL> data = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBPluginData ( id = id , <EOL> data = data ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , plugin_data , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( plugin_data . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:data>' , self . convertToStr ( plugin_data . db_data , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBFunctionXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> pos = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> parameters = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> parameters . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBFunction ( id = id , <EOL> pos = pos , <EOL> name = name , <EOL> parameters = parameters ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , function , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( function . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( function . db_pos , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( function . db_name , '<STR_LIT:str>' ) ) <EOL> parameters = function . db_parameters <EOL> for parameter in parameters : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( parameter , childNode ) <EOL> return node <EOL> class DBAbstractionXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> cache = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> namespace = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> package = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> internal_version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> tag = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> location = None <EOL> functions = [ ] <EOL> annotations = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT:location>' : <EOL> _data = self . getDao ( '<STR_LIT:location>' ) . fromXML ( child ) <EOL> location = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> functions . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBAbstraction ( id = id , <EOL> cache = cache , <EOL> name = name , <EOL> namespace = namespace , <EOL> package = package , <EOL> version = version , <EOL> internal_version = internal_version , <EOL> tag = tag , <EOL> location = location , <EOL> functions = functions , <EOL> annotations = annotations ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , abstraction , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( abstraction . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( abstraction . db_cache , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( abstraction . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( abstraction . db_namespace , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( abstraction . db_package , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( abstraction . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( abstraction . db_internal_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( abstraction . db_tag , '<STR_LIT:str>' ) ) <EOL> location = abstraction . db_location <EOL> if location is not None : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:location>' ) <EOL> self . getDao ( '<STR_LIT:location>' ) . toXML ( location , childNode ) <EOL> functions = abstraction . db_functions <EOL> for function in functions : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( function , childNode ) <EOL> annotations = abstraction . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> return node <EOL> class DBWorkflowXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> vistrail_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> connections = [ ] <EOL> annotations = [ ] <EOL> plugin_datas = [ ] <EOL> others = [ ] <EOL> modules = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> connections . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> plugin_datas . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> others . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> modules . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> modules . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> modules . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBWorkflow ( modules = modules , <EOL> id = id , <EOL> name = name , <EOL> version = version , <EOL> connections = connections , <EOL> annotations = annotations , <EOL> plugin_datas = plugin_datas , <EOL> others = others , <EOL> vistrail_id = vistrail_id ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , workflow , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( workflow . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( workflow . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( workflow . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow . db_vistrail_id , '<STR_LIT>' ) ) <EOL> connections = workflow . db_connections <EOL> for connection in connections : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( connection , childNode ) <EOL> annotations = workflow . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> plugin_datas = workflow . db_plugin_datas <EOL> for plugin_data in plugin_datas : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( plugin_data , childNode ) <EOL> others = workflow . db_others <EOL> for other in others : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( other , childNode ) <EOL> modules = workflow . db_modules <EOL> for module in modules : <EOL> if module . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module , childNode ) <EOL> elif module . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module , childNode ) <EOL> elif module . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module , childNode ) <EOL> return node <EOL> class DBRegistryXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> root_descriptor_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> packages = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> packages . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBRegistry ( id = id , <EOL> version = version , <EOL> root_descriptor_id = root_descriptor_id , <EOL> packages = packages ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , registry , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( registry . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( registry . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( registry . db_root_descriptor_id , '<STR_LIT>' ) ) <EOL> packages = registry . db_packages <EOL> for package in packages : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( package , childNode ) <EOL> return node <EOL> class DBAnnotationXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:key>' , None ) <EOL> key = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:value>' , None ) <EOL> value = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBAnnotation ( id = id , <EOL> key = key , <EOL> value = value ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , annotation , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( annotation . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:key>' , self . convertToStr ( annotation . db_key , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:value>' , self . convertToStr ( annotation . db_value , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBChangeXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> what = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> oldObjId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> newObjId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjType = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = None <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT:location>' : <EOL> _data = self . getDao ( '<STR_LIT:location>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT:port>' : <EOL> _data = self . getDao ( '<STR_LIT:port>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> data = _data <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBChange ( data = data , <EOL> id = id , <EOL> what = what , <EOL> oldObjId = oldObjId , <EOL> newObjId = newObjId , <EOL> parentObjId = parentObjId , <EOL> parentObjType = parentObjType ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , change , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( change . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( change . db_what , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( change . db_oldObjId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( change . db_newObjId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( change . db_parentObjId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( change . db_parentObjType , '<STR_LIT:str>' ) ) <EOL> data = change . db_data <EOL> if data is not None : <EOL> if data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT:location>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:location>' ) <EOL> self . getDao ( '<STR_LIT:location>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT:port>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:port>' ) <EOL> self . getDao ( '<STR_LIT:port>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> elif data . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( data , childNode ) <EOL> return node <EOL> class DBGroupExecXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_start = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_end = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> cached = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> module_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> group_name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> group_type = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> completed = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:error>' , None ) <EOL> error = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> machine_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> annotations = [ ] <EOL> loop_execs = [ ] <EOL> module_execs = [ ] <EOL> group_execs = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> loop_execs . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> module_execs . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> group_execs . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBGroupExec ( id = id , <EOL> ts_start = ts_start , <EOL> ts_end = ts_end , <EOL> cached = cached , <EOL> module_id = module_id , <EOL> group_name = group_name , <EOL> group_type = group_type , <EOL> completed = completed , <EOL> error = error , <EOL> machine_id = machine_id , <EOL> annotations = annotations , <EOL> loop_execs = loop_execs , <EOL> module_execs = module_execs , <EOL> group_execs = group_execs ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , group_exec , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( group_exec . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_ts_start , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_ts_end , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_cached , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_module_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_group_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_group_type , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_completed , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:error>' , self . convertToStr ( group_exec . db_error , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( group_exec . db_machine_id , '<STR_LIT>' ) ) <EOL> annotations = group_exec . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> loop_execs = group_exec . db_loop_execs <EOL> for loop_exec in loop_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( loop_exec , childNode ) <EOL> module_execs = group_exec . db_module_execs <EOL> for module_exec in module_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module_exec , childNode ) <EOL> group_execs = group_exec . db_group_execs <EOL> for group_exec in group_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( group_exec , childNode ) <EOL> return node <EOL> class DBPackageXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> identifier = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> codepath = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> load_configuration = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:description>' , None ) <EOL> description = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> module_descriptors = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> module_descriptors . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBPackage ( id = id , <EOL> name = name , <EOL> identifier = identifier , <EOL> codepath = codepath , <EOL> load_configuration = load_configuration , <EOL> version = version , <EOL> description = description , <EOL> module_descriptors = module_descriptors ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , package , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( package . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( package . db_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( package . db_identifier , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( package . db_codepath , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( package . db_load_configuration , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( package . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:description>' , self . convertToStr ( package . db_description , '<STR_LIT:str>' ) ) <EOL> module_descriptors = package . db_module_descriptors <EOL> for module_descriptor in module_descriptors : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module_descriptor , childNode ) <EOL> return node <EOL> class DBWorkflowExecXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:user>' , None ) <EOL> user = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ip = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> session = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> vt_version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_start = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_end = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parent_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parent_type = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parent_version = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> completed = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> items = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> items . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> items . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBWorkflowExec ( items = items , <EOL> id = id , <EOL> user = user , <EOL> ip = ip , <EOL> session = session , <EOL> vt_version = vt_version , <EOL> ts_start = ts_start , <EOL> ts_end = ts_end , <EOL> parent_id = parent_id , <EOL> parent_type = parent_type , <EOL> parent_version = parent_version , <EOL> completed = completed , <EOL> name = name ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , workflow_exec , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( workflow_exec . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:user>' , self . convertToStr ( workflow_exec . db_user , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_ip , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_session , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_vt_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_ts_start , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_ts_end , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_parent_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_parent_type , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_parent_version , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( workflow_exec . db_completed , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( workflow_exec . db_name , '<STR_LIT:str>' ) ) <EOL> items = workflow_exec . db_items <EOL> for item in items : <EOL> if item . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( item , childNode ) <EOL> elif item . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( item , childNode ) <EOL> return node <EOL> class DBLoopExecXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_start = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_end = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> completed = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:error>' , None ) <EOL> error = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> module_execs = [ ] <EOL> group_execs = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> module_execs . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> group_execs . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBLoopExec ( id = id , <EOL> ts_start = ts_start , <EOL> ts_end = ts_end , <EOL> completed = completed , <EOL> error = error , <EOL> module_execs = module_execs , <EOL> group_execs = group_execs ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , loop_exec , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( loop_exec . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( loop_exec . db_ts_start , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( loop_exec . db_ts_end , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( loop_exec . db_completed , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:error>' , self . convertToStr ( loop_exec . db_error , '<STR_LIT:str>' ) ) <EOL> module_execs = loop_exec . db_module_execs <EOL> for module_exec in module_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( module_exec , childNode ) <EOL> group_execs = loop_exec . db_group_execs <EOL> for group_exec in group_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( group_exec , childNode ) <EOL> return node <EOL> class DBConnectionXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> ports = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT:port>' : <EOL> _data = self . getDao ( '<STR_LIT:port>' ) . fromXML ( child ) <EOL> ports . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBConnection ( id = id , <EOL> ports = ports ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , connection , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( connection . db_id , '<STR_LIT>' ) ) <EOL> ports = connection . db_ports <EOL> for port in ports : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:port>' ) <EOL> self . getDao ( '<STR_LIT:port>' ) . toXML ( port , childNode ) <EOL> return node <EOL> class DBActionXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT:action>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> prevId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:date>' , None ) <EOL> date = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> session = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:user>' , None ) <EOL> user = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> prune = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> annotations = [ ] <EOL> operations = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> operations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> operations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> operations . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBAction ( operations = operations , <EOL> id = id , <EOL> prevId = prevId , <EOL> date = date , <EOL> session = session , <EOL> user = user , <EOL> prune = prune , <EOL> annotations = annotations ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , action , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT:action>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( action . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( action . db_prevId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:date>' , self . convertToStr ( action . db_date , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( action . db_session , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:user>' , self . convertToStr ( action . db_user , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( action . db_prune , '<STR_LIT:int>' ) ) <EOL> annotations = action . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> operations = action . db_operations <EOL> for operation in operations : <EOL> if operation . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( operation , childNode ) <EOL> elif operation . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( operation , childNode ) <EOL> elif operation . vtType == '<STR_LIT>' : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( operation , childNode ) <EOL> return node <EOL> class DBDeleteXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> what = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> objectId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjId = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> parentObjType = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> obj = DBDelete ( id = id , <EOL> what = what , <EOL> objectId = objectId , <EOL> parentObjId = parentObjId , <EOL> parentObjType = parentObjType ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , delete , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( delete . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( delete . db_what , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( delete . db_objectId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( delete . db_parentObjId , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( delete . db_parentObjType , '<STR_LIT:str>' ) ) <EOL> return node <EOL> class DBVistrailXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT:version>' , None ) <EOL> version = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT:name>' , None ) <EOL> name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> actions = [ ] <EOL> tags = [ ] <EOL> annotations = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT:action>' : <EOL> _data = self . getDao ( '<STR_LIT:action>' ) . fromXML ( child ) <EOL> actions . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> tags . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBVistrail ( id = id , <EOL> version = version , <EOL> name = name , <EOL> actions = actions , <EOL> tags = tags , <EOL> annotations = annotations ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , vistrail , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( vistrail . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT:version>' , self . convertToStr ( vistrail . db_version , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT:name>' , self . convertToStr ( vistrail . db_name , '<STR_LIT:str>' ) ) <EOL> actions = vistrail . db_actions <EOL> for action in actions : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT:action>' ) <EOL> self . getDao ( '<STR_LIT:action>' ) . toXML ( action , childNode ) <EOL> tags = vistrail . db_tags <EOL> for tag in tags : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( tag , childNode ) <EOL> annotations = vistrail . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> return node <EOL> class DBModuleExecXMLDAOBase ( XMLDAO ) : <EOL> def __init__ ( self , daoList ) : <EOL> self . daoList = daoList <EOL> def getDao ( self , dao ) : <EOL> return self . daoList [ dao ] <EOL> def fromXML ( self , node ) : <EOL> if node . tag != '<STR_LIT>' : <EOL> return None <EOL> data = node . get ( '<STR_LIT:id>' , None ) <EOL> id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_start = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> ts_end = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> cached = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> module_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> module_name = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> completed = self . convertFromStr ( data , '<STR_LIT:int>' ) <EOL> data = node . get ( '<STR_LIT:error>' , None ) <EOL> error = self . convertFromStr ( data , '<STR_LIT:str>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> abstraction_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> abstraction_version = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> data = node . get ( '<STR_LIT>' , None ) <EOL> machine_id = self . convertFromStr ( data , '<STR_LIT>' ) <EOL> annotations = [ ] <EOL> loop_execs = [ ] <EOL> for child in node . getchildren ( ) : <EOL> if child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> annotations . append ( _data ) <EOL> elif child . tag == '<STR_LIT>' : <EOL> _data = self . getDao ( '<STR_LIT>' ) . fromXML ( child ) <EOL> loop_execs . append ( _data ) <EOL> elif child . text is None or child . text . strip ( ) == '<STR_LIT>' : <EOL> pass <EOL> else : <EOL> print '<STR_LIT>' % child . tag <EOL> obj = DBModuleExec ( id = id , <EOL> ts_start = ts_start , <EOL> ts_end = ts_end , <EOL> cached = cached , <EOL> module_id = module_id , <EOL> module_name = module_name , <EOL> completed = completed , <EOL> error = error , <EOL> abstraction_id = abstraction_id , <EOL> abstraction_version = abstraction_version , <EOL> machine_id = machine_id , <EOL> annotations = annotations , <EOL> loop_execs = loop_execs ) <EOL> obj . is_dirty = False <EOL> return obj <EOL> def toXML ( self , module_exec , node = None ) : <EOL> if node is None : <EOL> node = ElementTree . Element ( '<STR_LIT>' ) <EOL> node . set ( '<STR_LIT:id>' , self . convertToStr ( module_exec . db_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_ts_start , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_ts_end , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_cached , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_module_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_module_name , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_completed , '<STR_LIT:int>' ) ) <EOL> node . set ( '<STR_LIT:error>' , self . convertToStr ( module_exec . db_error , '<STR_LIT:str>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_abstraction_id , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_abstraction_version , '<STR_LIT>' ) ) <EOL> node . set ( '<STR_LIT>' , self . convertToStr ( module_exec . db_machine_id , '<STR_LIT>' ) ) <EOL> annotations = module_exec . db_annotations <EOL> for annotation in annotations : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( annotation , childNode ) <EOL> loop_execs = module_exec . db_loop_execs <EOL> for loop_exec in loop_execs : <EOL> childNode = ElementTree . SubElement ( node , '<STR_LIT>' ) <EOL> self . getDao ( '<STR_LIT>' ) . toXML ( loop_exec , childNode ) <EOL> return node <EOL> """<STR_LIT>""" <EOL> class XMLDAOListBase ( dict ) : <EOL> def __init__ ( self , daos = None ) : <EOL> if daos is not None : <EOL> dict . update ( self , daos ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBPortSpecXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBModuleXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBModuleDescriptorXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBTagXMLDAOBase ( self ) <EOL> if '<STR_LIT:port>' not in self : <EOL> self [ '<STR_LIT:port>' ] = DBPortXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBGroupXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBLogXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBMachineXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBAddXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBOtherXMLDAOBase ( self ) <EOL> if '<STR_LIT:location>' not in self : <EOL> self [ '<STR_LIT:location>' ] = DBLocationXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBParameterXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBPluginDataXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBFunctionXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBAbstractionXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBWorkflowXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBRegistryXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBAnnotationXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBChangeXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBGroupExecXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBPackageXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBWorkflowExecXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBLoopExecXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBConnectionXMLDAOBase ( self ) <EOL> if '<STR_LIT:action>' not in self : <EOL> self [ '<STR_LIT:action>' ] = DBActionXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBDeleteXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBVistrailXMLDAOBase ( self ) <EOL> if '<STR_LIT>' not in self : <EOL> self [ '<STR_LIT>' ] = DBModuleExecXMLDAOBase ( self ) </s>
