Subversion Repositories SmartDukaan

Rev

Rev 18052 | Rev 18089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18052 Rev 18053
Line 839... Line 839...
839
            except:
839
            except:
840
                item[0]['ppq'] = 0
840
                item[0]['ppq'] = 0
841
            if filterData is None:
841
            if filterData is None:
842
                if item[0]['category_id']!=6:
842
                if item[0]['category_id']!=6:
843
                    try:
843
                    try:
844
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.urlencode(item[0]['brand'])+'&filter=brand&brands='+str(int(item[0]['brand_id']))
844
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.quote(item[0]['brand'])+'&filter=brand&brands='+str(int(item[0]['brand_id']))
845
                        item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
845
                        item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
846
                    except:
846
                    except:
847
                        item[0]['filterLink'] = ""
847
                        item[0]['filterLink'] = ""
848
                        item[0]['filterText'] = ""
848
                        item[0]['filterText'] = ""
849
                else:
849
                else:
850
                    try:
850
                    try:
851
                        if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
851
                        if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
852
                            raise
852
                            raise
853
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.urlencode(item[0]['subCategory'])+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
853
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.quote(item[0]['subCategory'])+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
854
                        item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
854
                        item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
855
                    except:
855
                    except:
856
                        item[0]['filterLink'] = ''
856
                        item[0]['filterLink'] = ''
857
                        item[0]['filterText'] = ""
857
                        item[0]['filterText'] = ""
858
            try:
858
            try:
Line 1817... Line 1817...
1817
            except:
1817
            except:
1818
                item[0]['ppq'] = 0
1818
                item[0]['ppq'] = 0
1819
            
1819
            
1820
            if item[0]['category_id']!=6:
1820
            if item[0]['category_id']!=6:
1821
                try:
1821
                try:
1822
                    item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.urlencode(item[0]['brand'])+'&filter=brand&brands='+str(int(item[0]['brand_id']))
1822
                    item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.quote(item[0]['brand'])+'&filter=brand&brands='+str(int(item[0]['brand_id']))
1823
                    item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
1823
                    item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
1824
                except:
1824
                except:
1825
                    item[0]['filterLink'] = ""
1825
                    item[0]['filterLink'] = ""
1826
                    item[0]['filterText'] = ""
1826
                    item[0]['filterText'] = ""
1827
            else:
1827
            else:
1828
                try:
1828
                try:
1829
                    if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
1829
                    if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
1830
                        raise
1830
                        raise
1831
                    item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.urlencode(item[0]['subCategory'])+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
1831
                    item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+urllib.quote(item[0]['subCategory'])+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
1832
                    item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
1832
                    item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
1833
                except:
1833
                except:
1834
                    item[0]['filterLink'] = ''
1834
                    item[0]['filterLink'] = ''
1835
                    item[0]['filterText'] = ""
1835
                    item[0]['filterText'] = ""
1836
            try:
1836
            try: