Subversion Repositories SmartDukaan

Rev

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

Rev 16869 Rev 17747
Line 282... Line 282...
282
        existingProduct['in_stock'] = toBundle.in_stock
282
        existingProduct['in_stock'] = toBundle.in_stock
283
        existingProduct['marketPlaceUrl'] = toBundle.url
283
        existingProduct['marketPlaceUrl'] = toBundle.url
284
        existingProduct['rank'] = toBundle.rank
284
        existingProduct['rank'] = toBundle.rank
285
        existingProduct['source_product_name'] = toBundle.source_product_name
285
        existingProduct['source_product_name'] = toBundle.source_product_name
286
        existingProduct['url'] = toBundle.url
286
        existingProduct['url'] = toBundle.url
-
 
287
        existingProduct['showVideo'] = 0
-
 
288
        existingProduct['shippingCost'] = 0
-
 
289
        existingProduct['quantity'] = 1
-
 
290
        existingProduct['videoLink'] = ""
287
        get_mongo_connection().Catalog.MasterData.insert(existingProduct)
291
        get_mongo_connection().Catalog.MasterData.insert(existingProduct)
288
        newBundled = __NewBundled(toBundle, existingProduct)
292
        newBundled = __NewBundled(toBundle, existingProduct)
289
        bundledProducts.append(newBundled)
293
        bundledProducts.append(newBundled)
290
        return {1:'Data added successfully.'}
294
        return {1:'Data added successfully.'}
291
    except Exception as e:
295
    except Exception as e: