Subversion Repositories SmartDukaan

Rev

Rev 1915 | Blame | Compare with Previous | Last modification | View Log | RSS feed

import utils

print "expSlide=" + `expSlide`

struct = utils.contentModel2Struct(expSlide, categoryObj)
print "struct=" + `struct`

score = 0.0

    
if struct.has_key("features") :
    features = struct.get("features")

    # Types > MMS : 2, 0
    if features.has_key("MMS") :
        score += 10*10

    # Types > Instant Messaging : 2, 0
    if features.has_key("Instant Messaging") :
        score += 40*10

    # Types > Email : 2, 0
    if features.has_key("Email") :
        score += 50*10

    score = score/100