Subversion Repositories SmartDukaan

Rev

Rev 5873 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5873 amit.gupta 1
values = []
2
expFeatures = expSlide.getExpandedFeatures()
3
if expFeatures is not None:
4
    for expFeature in expFeatures:
5
        print expFeature.getFeatureDefinition()
6
        if expFeature.getFeatureDefinition().getID() == 120332:
7
            expBullets = expFeature.getExpandedBullets()
8
            if expBullets is not None:
9
                for expBullet in expBullets:
5998 amit.gupta 10
                    resolution = float(expBullet.getValue())
5873 amit.gupta 11
 
12
print "Resulution is" + `resolution`
13
 
14
if resolution < 4 :
15
    strRate = "Upto 4x"    
16
elif resolution < 6 :
17
    strRate = "4 - 6x"
18
elif resolution < 10 :
19
    strRate = "6 - 10x"
20
elif resolution < 14 :
21
    strRate = "10 - 14x"
22
elif resolution < 18 :
23
    strRate = "14 - 18x"
24
else :
25
    strRate = "Above 18x"
26
 
27
values.append(strRate)