Subversion Repositories SmartDukaan

Rev

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

values = []

storage = None
expChildSlides = expSlide.getExpandedChildrenSlides()

for expChildSlide in expChildSlides:
    slideLabel = expChildSlide.getSlideDefinition().getLabel()
    
    if slideLabel == 'Hard disk drive':
        expFeatures = expSlide.getExpandedFeatures()        
        
        if expFeatures is not None:
            for expFeature in expFeatures:
                print expFeature.getFeatureDefinition().getID()
                if expFeature.getFeatureDefinition().getID() == 120112:
                    expBullets = expFeature.getExpandedBullets()
                    if expBullets is not None:
                        for expBullet in expBullets:
                            storage = int(expBullet.getValue())

if storage is not None:
    print "Storage is " + `storage`
    
    if storage <= 500:
        strStorage = "Upto 500GB"
    else:
        strStorage = "More than 500GB"
    
    values.append(strStorage)