Subversion Repositories SmartDukaan

Rev

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

Rev 8045 Rev 8079
Line 13... Line 13...
13
    if features.has_key("File formats") :
13
    if features.has_key("File formats") :
14
        file_formats = features.get("File formats")
14
        file_formats = features.get("File formats")
15
        number_of_file_formats = len(file_formats)
15
        number_of_file_formats = len(file_formats)
16
        if number_of_file_formats == 1 :
16
        if number_of_file_formats == 1 :
17
            file_formats_score = 4.0
17
            file_formats_score = 4.0
18
        elif number_of_file_formats >= 5 :
18
        elif number_of_file_formats >= 4 :
19
            file_formats_score = 10.0
19
            file_formats_score = 10.0
20
        else :
20
        else :
21
            file_formats_score = 2*number_of_file_formats
21
            file_formats_score = 3*number_of_file_formats
22
 
22
 
23
    if features.has_key("Streaming") :
23
    if features.has_key("Streaming") :
24
        streaming_score = 10.0
24
        streaming_score = 10.0
25
 
25
 
26
    if category == "Tablets" :
26
    if category == "Tablets" :
Line 31... Line 31...
31
            recording = features.get("Video recording")
31
            recording = features.get("Video recording")
32
            if len(recording) > 0:
32
            if len(recording) > 0:
33
                print "recording :" + `recording`
33
                print "recording :" + `recording`
34
                recording = recording[0]
34
                recording = recording[0]
35
                if recording == "Yes":
35
                if recording == "Yes":
36
                    recording_score = 3.0
36
                    recording_score = 4.0
37
                elif recording == "720p HD video recording":
37
                elif recording == "720p HD video recording":
38
                    recording_score = 6.0
38
                    recording_score = 7.0
39
                elif recording == "1080p Full HD video recording":
39
                elif recording == "1080p Full HD video recording":
40
                    recording_score = 10.0
40
                    recording_score = 10.0
41
                    
41
                    
42
        if features.has_key("HD Video playback") :
42
        if features.has_key("HD Video playback") :
43
            hd_video_playback = 10.0
43
            hd_video_playback = 10.0