Rev 71 | Blame | Last modification | View Log | RSS feed
def getscore(struct) :score = 0if not struct.has_key("features") :return scorefeatures = struct.get("features")# REVISIT - May be we should count supported formatsif features.has_key("Ringtone Types") :score = score + 1# REVISIT - May be we should count supported formatsif features.has_key("Music Formats") :score = score + 1if features.has_key("FM Radio") :score = score + 1if features.has_key("Headset") :score = score + 1if features.has_key("Album art") :score = score + 1if features.has_key("Speaker phone") :score = score + 1if features.has_key("Internet Radio") :score = score + 2return score