Subversion Repositories SmartDukaan

Rev

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

Rev 1312 Rev 3448
Line 1... Line 1...
1
if vars().has_key('expSlide'):
1
if vars().has_key('expSlide'):
2
    print "expSlide=" + `expSlide`
2
    print "expSlide=" + `expSlide`
3
 
3
 
4
 
4
 
5
# Pick 2G and 3G Feature objects
5
# Pick 2G and 3G Feature objects
-
 
6
twoGFeature = None
-
 
7
v2Ghours = None
6
threeGFeature = None
8
threeGFeature = None
7
v3Ghours = None
9
v3Ghours = None
8
 
10
 
9
expSlide = expSlide.getExpandedChildrenSlides().get(0)
11
expSlide = expSlide.getExpandedChildrenSlides().get(0)
10
print expSlide.getSlideDefinitionID()
12
print expSlide.getSlideDefinitionID()
Line 18... Line 20...
18
    if label == "2G":
20
    if label == "2G":
19
        twoGFeature = expandedFeature
21
        twoGFeature = expandedFeature
20
    elif label == "3G":
22
    elif label == "3G":
21
        threeGFeature = expandedFeature 
23
        threeGFeature = expandedFeature 
22
        
24
        
-
 
25
if twoGFeature is not None:
23
twoGBullets = twoGFeature.getExpandedBullets()
26
    twoGBullets = twoGFeature.getExpandedBullets()
24
 
27
 
25
# Is a single-value field
28
    # Is a single-value field
26
twoGBullet = twoGBullets[0]
29
    twoGBullet = twoGBullets[0]
27
v2G = twoGBullet.getValue()
30
    v2G = twoGBullet.getValue()
28
print "v2G=" + `v2G`
31
    print "v2G=" + `v2G`
29
v2Gparts = v2G.split()
32
    v2Gparts = v2G.split()
30
 
33
    
31
# Take only hours
34
    # Take only hours
32
v2Ghours = float(v2Gparts[0])
35
    v2Ghours = float(v2Gparts[0])
33
print "v2Ghours=" + `v2Ghours`
36
    print "v2Ghours=" + `v2Ghours`
34
 
37
 
35
if threeGFeature is not None:        
38
if threeGFeature is not None:        
36
    threeGBullets = threeGFeature.getExpandedBullets()
39
    threeGBullets = threeGFeature.getExpandedBullets()
37
 
40
 
38
    # Is a single-value field
41
    # Is a single-value field