Subversion Repositories SmartDukaan

Rev

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

Rev 65 Rev 66
Line 1... Line -...
1
print "expFacetDef=" + `expFacetDef`
-
 
2
print "expEntity=" + `expEntity`
-
 
3
if vars().has_key('expFeature'):
1
if vars().has_key('expFeature'):
4
    print "expFeature=" + `expFeature`
2
    print "expFeature=" + `expFeature`
-
 
3
 
-
 
4
bullets = expFeature.getExpandedBullets()
-
 
5
 
-
 
6
# Is a single-value field
-
 
7
bullet = bullets[0]
-
 
8
v2G = bullet.getValue()
-
 
9
print "v2G=" + `v2G`
-
 
10
v2Gparts = v2G.split()
5
    
11
    
-
 
12
# Take only hours
6
if vars().has_key('featureDef'):
13
v2Ghours = int(v2Gparts[0])
7
    print "featureDef=" + `featureDef`
14
print "v2Ghours=" + `v2Ghours`
-
 
15
 
-
 
16
# Rough values
-
 
17
# 2G High > 10, Medium > 5 else Low
-
 
18
 
-
 
19
# 1 - Low
-
 
20
# 2 - Medium
-
 
21
# 3 - High
-
 
22
 
-
 
23
# 2G logic
-
 
24
if v2Ghours >= 10:
-
 
25
    r2G = 3
-
 
26
elif v2Ghours >= 5:
-
 
27
    r2G = 2
-
 
28
else:
-
 
29
    r2G = 1
8
    
30
    
-
 
31
if r2G == 1:
-
 
32
    strRate = "Low"
-
 
33
elif r2G == 2:
9
if vars().has_key('slide'):
34
    strRate = "Medium"
-
 
35
else:
10
    print "slide=" + `slide`
36
    strRate = "High"
11
    
37
    
12
if vars().has_key('slideDef'):
38
values = []
13
    print "slideDef=" + `slideDef`
39
values.append(strRate)
14
40