Subversion Repositories SmartDukaan

Rev

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

Rev 20458 Rev 20459
Line 1978... Line 1978...
1978
                master = get_mongo_connection().Catalog.MasterData.find_one({'_id':val['sku']})
1978
                master = get_mongo_connection().Catalog.MasterData.find_one({'_id':val['sku']})
1979
            if master is not None:
1979
            if master is not None:
1980
                val['brand'] = master['brand']
1980
                val['brand'] = master['brand']
1981
                val['source_product_name'] = master['source_product_name']
1981
                val['source_product_name'] = master['source_product_name']
1982
                val['skuBundleId'] = master['skuBundleId']
1982
                val['skuBundleId'] = master['skuBundleId']
-
 
1983
                val['product_name'] = master['product_name']
-
 
1984
                val['source'] = SOURCE_MAP.get(master['source_id'])
1983
            else:
1985
            else:
1984
                val['brand'] = ""
1986
                val['brand'] = ""
1985
                val['source_product_name'] = ""
1987
                val['source_product_name'] = ""
1986
                val['skuBundleId'] = ""
1988
                val['skuBundleId'] = ""
1987
            data.append(val)
1989
            data.append(val)