Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
73 naveen 1
import utils
71 naveen 2
 
73 naveen 3
print "expSlide=" + `expSlide`
71 naveen 4
 
73 naveen 5
struct = utils.contentModel2Struct(expSlide)
6
print "struct=" + `struct`
7
 
1915 rajveer 8
score = 0.0
77 naveen 9
 
10
# Types : count <=2 - 4, >2 - 8
11
 
12
if struct.has_key("features") :
13
    features = struct.get("features")
14
 
15
    if features.has_key("Types") :
16
       types = features.get("Types")
17
       print "types=" + `types`
18
 
1915 rajveer 19
       if "MMS" in types:
20
           score += 1
21
 
22
       if "Instant messaging" in types:
77 naveen 23
           score += 4
24
 
1915 rajveer 25
       if "Email" in types:
26
           score += 5
27