Subversion Repositories SmartDukaan

Rev

Rev 77 | Rev 2657 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

import utils

print "expSlide=" + `expSlide`

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

score = 0

if struct.has_key("features") :
    features = struct.get("features")
    
    # MMS : 3, 0
    if features.has_key("MMS") :
        score += 3
         
    # SMS : 3, 0
    if features.has_key("SMS") :
        score += 3

    # Email : 3, 0
    if features.has_key("Email") :
        score += 3