Subversion Repositories SmartDukaan

Rev

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

Rev 20286 Rev 20287
Line 69... Line 69...
69
            skuInfo.source_product_names.append(item['source_product_name'].strip())
69
            skuInfo.source_product_names.append(item['source_product_name'].strip())
70
            skuInfo.ids.append(int(item['_id']))
70
            skuInfo.ids.append(int(item['_id']))
71
        else:
71
        else:
72
            syn_brand = synonymsMap.get((item['brand']).upper())
72
            syn_brand = synonymsMap.get((item['brand']).upper())
73
            model_syn = modelNameSynonymMap.get(item['skuBundleId'])
73
            model_syn = modelNameSynonymMap.get(item['skuBundleId'])
-
 
74
            try:
74
            if len(str(item['thumbnail']).strip()) == 0:
75
                if len(str(item['thumbnail']).strip()) == 0:
75
                item['thumbnail'] = "http://api.profittill.com/img/no_image_available.png"
76
                    item['thumbnail'] = "http://api.profittill.com/img/no_image_available.png"
-
 
77
            except:
-
 
78
                print "Exception in item thumbnail",item['_id']
76
            try:
79
            try:
77
                skuInfo = __SkuInfo(str(item['skuBundleId']), [int(item['_id'])], str(item['brand']).strip(), str(item['model_name']).strip(), \
80
                skuInfo = __SkuInfo(str(item['skuBundleId']), [int(item['_id'])], str(item['brand']).strip(), str(item['model_name']).strip(), \
78
                                int(item['category_id']), int(item['subCategoryId']), item['thumbnail'].strip(), title, syn_brand, model_syn, [item['source_product_name'].strip()], \
81
                                int(item['category_id']), int(item['subCategoryId']), item['thumbnail'].strip(), title, syn_brand, model_syn, [item['source_product_name'].strip()], \
79
                                CATEGORY_MAP.get(int(item['category_id'])), SUB_CATEGORY_MAP.get(int(item['subCategoryId'])))
82
                                CATEGORY_MAP.get(int(item['category_id'])), SUB_CATEGORY_MAP.get(int(item['subCategoryId'])))
80
            except:
83
            except: