Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
4135 varun.gupt 1
values = []
2
 
3
storage = None
4271 varun.gupt 4
expChildSlides = expSlide.getExpandedChildrenSlides()
4135 varun.gupt 5
 
4271 varun.gupt 6
for expChildSlide in expChildSlides:
7
    slideLabel = expChildSlide.getSlideDefinition().getLabel()
8
 
9
    if slideLabel == 'Hard disk drive':
10
        expFeatures = expSlide.getExpandedFeatures()        
11
 
12
        if expFeatures is not None:
13
            for expFeature in expFeatures:
14
                print expFeature.getFeatureDefinition().getID()
15
                if expFeature.getFeatureDefinition().getID() == 120112:
16
                    expBullets = expFeature.getExpandedBullets()
17
                    if expBullets is not None:
18
                        for expBullet in expBullets:
19
                            storage = int(expBullet.getValue())
20
 
4135 varun.gupt 21
if storage is not None:
4271 varun.gupt 22
    print "Storage is " + `storage`
4135 varun.gupt 23
 
24
    if storage <= 500:
25
        strStorage = "Upto 500GB"
26
    else:
27
        strStorage = "More than 500GB"
28
 
29
    values.append(strStorage)