Subversion Repositories SmartDukaan

Rev

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

Rev 1915 Rev 2657
Line 1... Line 1...
1
import utils
1
import utils
2
 
2
 
3
print "expSlide=" + `expSlide`
3
print "expSlide=" + `expSlide`
4
 
4
 
5
struct = utils.contentModel2Struct(expSlide)
5
struct = utils.contentModel2Struct(expSlide, categoryObj)
6
print "struct=" + `struct`
6
print "struct=" + `struct`
7
 
7
 
8
score = 0.0
8
score = 0.0
9
 
9
 
10
# Types : count <=2 - 4, >2 - 8
10
# Types : count <=2 - 4, >2 - 8
Line 22... Line 22...
22
       if "Instant messaging" in types:
22
       if "Instant messaging" in types:
23
           score += 4
23
           score += 4
24
       
24
       
25
       if "Email" in types:
25
       if "Email" in types:
26
           score += 5
26
           score += 5
27
           
-
 
28
27
           
-
 
28