Rev 77 | Rev 1915 | 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 = 0if struct.has_key("features") :features = struct.get("features")# E-mail Client : 2, 0if features.has_key("E-mail Client") :score += 2if struct.has_key("childrenslides") :childrenslides = struct.get("childrenslides")if childrenslides.has_key("Types") :types = childrenslides.get("Types")if types.has_key("features") :features = types.get("features")# Types > MMS : 2, 0if features.has_key("MMS") :score += 2# Types > SMS : 2, 0if features.has_key("SMS") :score += 2# Types > Instant Messaging : 2, 0if features.has_key("Instant Messaging") :score += 2# Types > Email : 2, 0if features.has_key("Email") :score += 2