Rev 323 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
import utilsprint "expSlide=" + `expSlide`struct = utils.contentModel2Struct(expSlide)print "struct=" + `struct`score = 0.0# Types : count <=2 - 4, >2 - 8if struct.has_key("features") :features = struct.get("features")if features.has_key("Types") :types = features.get("Types")print "types=" + `types`if "MMS" in types:score += 1if "Instant messaging" in types:score += 4if "Email" in types:score += 5