Subversion Repositories SmartDukaan

Rev

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

Rev 3314 Rev 3442
Line 28... Line 28...
28
            if len(weight) > 0 :
28
            if len(weight) > 0 :
29
                weight = float(weight[0])
29
                weight = float(weight[0])
30
                print "weight=" + `weight`
30
                print "weight=" + `weight`
31
 
31
 
32
                if weight == -1:
32
                if weight == -1:
33
                    weight = 90 
33
                    weight = 90.0 
34
                                    
34
                                    
35
                if weight > max_weight :
35
                if weight > max_weight :
36
                    weight_score = 0
36
                    weight_score = 0
37
                
37
                
38
                elif weight <= min_weight :
38
                elif weight <= min_weight :
Line 48... Line 48...
48
            if len(size) > 2 :
48
            if len(size) > 2 :
49
                thickness = float(size[2])
49
                thickness = float(size[2])
50
                print "thickness=" + `thickness`
50
                print "thickness=" + `thickness`
51
 
51
 
52
                if thickness == -1 :
52
                if thickness == -1 :
53
                    thickness = 12
53
                    thickness = 12.0
54
                    
54
                    
55
                if thickness <= min_thickness :
55
                if thickness <= min_thickness :
56
                    thickness_score = 10
56
                    thickness_score = 10
57
                
57
                
58
                elif thickness > max_thickness :
58
                elif thickness > max_thickness :