Subversion Repositories SmartDukaan

Rev

Rev 323 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
71 naveen 1
import internet_math as mathmodel
73 naveen 2
import utils
71 naveen 3
 
73 naveen 4
print "expSlide=" + `expSlide`
71 naveen 5
 
2657 rajveer 6
struct = utils.contentModel2Struct(expSlide, categoryObj)
73 naveen 7
print "struct=" + `struct`
8
 
77 naveen 9
newfeatures = {}
10
 
11
if struct.has_key("features") :
12
    features = struct.get("features")
13
 
14
    if features.has_key("XHTML") :
15
        newfeatures['Markup languages'] = ["XHTML"]
16
 
17
    if features.has_key("WAP") :
18
        newfeatures['Protocols'] = ["WAP"]
19
 
20
a = {}
21
a['features'] = newfeatures
22
newslides = {'Browser': a}
23
 
24
newstruct = {}
25
newstruct['childrenslides'] = newslides
26
print "newstruct=" + `newstruct`
27
 
2657 rajveer 28
score = mathmodel.getscore(newstruct)