Subversion Repositories SmartDukaan

Rev

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

Rev 2657 Rev 6646
Line 8... Line 8...
8
score = 0
8
score = 0
9
 
9
 
10
if struct.has_key("features") :
10
if struct.has_key("features") :
11
    features = struct.get("features")
11
    features = struct.get("features")
12
    
12
    
13
    # MMS : 3, 0
13
    # MMS : 1, 0
14
    if features.has_key("MMS") :
14
    if features.has_key("MMS") :
15
        score += 3
15
        score += 1
16
         
16
         
17
    # SMS : 3, 0
17
    # SMS : 2, 0
18
    if features.has_key("SMS") :
18
    if features.has_key("SMS") :
-
 
19
        score += 2
-
 
20
 
-
 
21
    # Instant Messaging : 3, 0
-
 
22
    if features.has_key("Instant messaging") :
19
        score += 3
23
        score += 3
20
 
24
 
21
    # Email : 3, 0
25
    # Email : 4, 0
22
    if features.has_key("Email") :
26
    if features.has_key("Email") :
23
        score += 3
27
        score += 4