Subversion Repositories SmartDukaan

Rev

Rev 77 | 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

# Types : count <=2 - 4, >2 - 8

if struct.has_key("features") :
    features = struct.get("features")
    
    if features.has_key("Types") :
       types = features.get("Types")
       print "types=" + `types`
       
       if len(types) <= 2 :
           score += 4
       
       if len(types) > 2 :
           score +=8