Subversion Repositories SmartDukaan

Rev

Rev 347 | Blame | Compare with Previous | Last modification | View Log | RSS feed

values = []

memory = None
expFeatures = expSlide.getExpandedFeatures()
if expFeatures is not None:
    for expFeature in expFeatures:
        print expFeature.getFeatureDefinition().getID()
        if expFeature.getFeatureDefinition().getID() == 120030:
            expBullets = expFeature.getExpandedBullets()
            if expBullets is not None:
                for expBullet in expBullets:
                    print expBullet
                    memory = float(expBullet.getValue())
     
if memory is not None:
    print "Memory is" + `memory`
    
    if memory < 512 :
        strRate = "Upto 512 MB"    
    elif memory < 2048 :
        strRate = "512 MB - 2 GB"
    elif memory < 8192 :
        strRate = "2 GB - 8 GB"
    else :
        strRate = "Above 8 GB"
        
    values.append(strRate)