Subversion Repositories SmartDukaan

Rev

Details | 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
 
77 naveen 8
score = 0
9
 
10
if struct.has_key("features") :
11
    features = struct.get("features")
12
 
13
    # MMS : 3, 0
14
    if features.has_key("MMS") :
15
        score += 3
16
 
17
    # SMS : 3, 0
18
    if features.has_key("SMS") :
19
        score += 3
20
 
21
    # Email : 3, 0
22
    if features.has_key("Email") :
23
        score += 3