Rev 323 | Rev 2655 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
def getscore(struct) :score = 0.0if struct.has_key("features") :features = struct.get("features")# GPRS : 1, 0if features.has_key("GPRS") :score += 10*20# EDGE : 1, 0if features.has_key("EDGE") :score += 10*10# 3G : 2, 0if features.has_key("3G") :score += 10*25# WLAN : 2, 0if features.has_key("WLAN") :score += 10*25# Bluetooth : 1, 0if features.has_key("Bluetooth") :score += 10*10# USB : 1, 0if features.has_key("USB") :score += 10*10score = score / 100return score