Subversion Repositories SmartDukaan

Rev

Rev 73 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73 Rev 76
Line 4... Line 4...
4
print "expSlide=" + `expSlide`
4
print "expSlide=" + `expSlide`
5
 
5
 
6
struct = utils.contentModel2Struct(expSlide)
6
struct = utils.contentModel2Struct(expSlide)
7
print "struct=" + `struct`
7
print "struct=" + `struct`
8
 
8
 
-
 
9
if struct.has_key("features") :
-
 
10
    features = struct.get("features")
-
 
11
    camcount = features.pop("Number of Cameras")
-
 
12
    print "camcount=" + `camcount`
-
 
13
    
-
 
14
    nfcsfeatures = {}
-
 
15
    
-
 
16
    if camcount == 1 :
-
 
17
        nfcsfeatures['Primary camera'] = []
-
 
18
        
-
 
19
    elif camcount > 1 :
-
 
20
        nfcsfeatures['Secondary camera'] = []
-
 
21
    
-
 
22
    nfcsslides = {}
-
 
23
    nfcsslides['Number of Cameras'] = {'features': nfcsfeatures}
-
 
24
    
-
 
25
    struct['childrenslides'] = nfcsslides
-
 
26
    
-
 
27
    print "newstruct=" + `struct`
-
 
28
    
9
score = mathmodel.getscore(struct)
29
score = mathmodel.getscore(struct)
10
30