Subversion Repositories SmartDukaan

Rev

Rev 4271 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4271 Rev 6997
Line 1... Line 1...
1
values = []
1
values = []
2
 
2
 
3
storage = None
-
 
4
expChildSlides = expSlide.getExpandedChildrenSlides()
-
 
5
 
-
 
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
 
-
 
21
if storage is not None:
-
 
22
    print "Storage is " + `storage`
-
 
23
    
-
 
24
    if storage <= 500:
-
 
25
        strStorage = "Upto 500GB"
-
 
26
    else:
-
 
27
        strStorage = "More than 500GB"
-
 
28
    
-
 
29
    values.append(strStorage)
-
 
30
3
childExpSlides = expSlide.getExpandedChildrenSlides()
-
 
4
if(childExpSlides):
-
 
5
    for childExpSlide in childExpSlides :
-
 
6
        if childExpSlide.getSlideDefinitionID() == 130093:
-
 
7
           expFeature = childExpSlide.getExpandedFeature(120112)
-
 
8
           if expFeature:
-
 
9
               expBullets = expFeature.getExpandedBullets()
-
 
10
               if expBullets is not None:
-
 
11
                   for expBullet in expBullets:
-
 
12
                       storage = str(expBullet.getValue())
-
 
13
                       unit = str(expBullet.getUnit().getShortForm())
-
 
14
                       values.append(storage + " " + unit)
-
 
15
           break
-
 
16
31
17