Show
Ignore:
Timestamp:
03/27/12 10:15:44 (14 months ago)
Author:
Snyder.Jason
Message:

changes related to alternate component implementations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/trunk/tools/WaveDev/wavedev/importResource.py

    r10825 r11083  
    3030 
    3131def getResource(path,Rname,parent): 
    32     scdPath = findFile(path,Rname,".scd.xml")                 
     32    scdPath = findFile(path,Rname,".scd.xml")  
    3333    if scdPath == None:          
    3434        errorMsg(parent,"No scd file found for: " + Rname) 
     
    165165    simpleSequenceProps = [] 
    166166    implementationNodes = doc_spd.getElementsByTagName("implementation") 
    167  
    168167    for node in implementationNodes: 
     168        simpleProps = [] 
     169        simpleSequenceProps = [] 
     170        propertyFile = '' 
    169171        id = node.getAttribute("id") 
    170172        tmp = node.getElementsByTagName("description") 
     
    200202         
    201203        newComp.implementations.append(newImplementation) 
    202      
     204#    print newComp.name + ' summary:' 
     205#    print 'Main properties: ' 
     206#    for prop in newComp.properties: 
     207#        print '    ' + prop.name 
     208#    print 'Implementations:' 
     209#    for imp in newComp.implementations: 
     210#        print imp.processor 
     211#        for prop in imp.properties: 
     212#            print '    ' + prop.name 
    203213    return newComp 
    204214 
     
    265275        p = getSimpleSequenceProperty(node, propertyFile) 
    266276        if p == None: 
    267             print "There was an error parsing simple sequence properties in the PRF file " + propetyFile 
     277            print "There was an error parsing simple sequence properties in the PRF file " + propertyFile 
    268278            continue 
    269279        props.append(p)