Subversion Repositories SmartDukaan

Rev

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

Rev 73 Rev 77
Line 1... Line -...
1
import messaging_math as mathmodel
-
 
2
import utils
1
import utils
3
 
2
 
4
print "expSlide=" + `expSlide`
3
print "expSlide=" + `expSlide`
5
 
4
 
6
struct = utils.contentModel2Struct(expSlide)
5
struct = utils.contentModel2Struct(expSlide)
7
print "struct=" + `struct`
6
print "struct=" + `struct`
8
 
7
 
9
score = mathmodel.getscore(struct)
-
 
10
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
-
 
24