Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
73 naveen 1
import utils
71 naveen 2
 
73 naveen 3
print "expSlide=" + `expSlide`
71 naveen 4
 
73 naveen 5
struct = utils.contentModel2Struct(expSlide)
6
print "struct=" + `struct`
7
 
77 naveen 8
score = 0
9
 
10
# Types : count <=2 - 4, >2 - 8
11
 
12
if struct.has_key("features") :
13
    features = struct.get("features")
14
 
15
    if features.has_key("Types") :
16
       types = features.get("Types")
17
       print "types=" + `types`
18
 
19
       if len(types) <= 2 :
20
           score += 4
21
 
22
       if len(types) > 2 :
23
           score +=8
24