Subversion Repositories SmartDukaan

Rev

Rev 2657 | 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
 
2657 rajveer 5
struct = utils.contentModel2Struct(expSlide, categoryObj)
73 naveen 6
print "struct=" + `struct`
7
 
77 naveen 8
score = 0
9
 
10
if struct.has_key("features") :
11
    features = struct.get("features")
12
 
6646 amit.gupta 13
    # MMS : 1, 0
77 naveen 14
    if features.has_key("MMS") :
6646 amit.gupta 15
        score += 1
77 naveen 16
 
6646 amit.gupta 17
    # SMS : 2, 0
77 naveen 18
    if features.has_key("SMS") :
6646 amit.gupta 19
        score += 2
20
 
21
    # Instant Messaging : 3, 0
22
    if features.has_key("Instant messaging") :
77 naveen 23
        score += 3
24
 
6646 amit.gupta 25
    # Email : 4, 0
77 naveen 26
    if features.has_key("Email") :
6646 amit.gupta 27
        score += 4