Subversion Repositories SmartDukaan

Rev

Rev 4135 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

values = []

ram = None
expFeatures = expSlide.getExpandedFeatures()
if expFeatures is not None:
    for expFeature in expFeatures:
        print expFeature.getFeatureDefinition().getID()
        if expFeature.getFeatureDefinition().getID() == 120031:
            expBullets = expFeature.getExpandedBullets()
            if expBullets is not None:
                for expBullet in expBullets:
                    ram = int(expBullet.getValue())

if ram is not None:
    print "RAM is" + `ram`
    
    if ram == 1:
        strRAM = "1 GB"
    elif ram == 2:
        strRAM = "2 GB"
    elif ram == 3:
        strRAM = "3 GB"
    elif ram == 4:
        strRAM = "4 GB"
    
    values.append(strRAM)