Subversion Repositories SmartDukaan

Rev

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

Rev 17013 Rev 19247
Line 252... Line 252...
252
        self.closed = False
252
        self.closed = False
253
        self.missingAff = True
253
        self.missingAff = True
254
        
254
        
255
class FeaturedDeals():
255
class FeaturedDeals():
256
    
256
    
257
    def __init__(self, sku, category_id, thresholdPrice, rank):
257
    def __init__(self, skuBundleId, thresholdPrice, rank):
258
        self.sku = sku
-
 
259
        self.category_id = category_id
258
        self.skuBundleId = skuBundleId
260
        self.thresholdPrice = thresholdPrice
259
        self.thresholdPrice = thresholdPrice
261
        self.rank = rank
260
        self.rank = rank
262
 
261
 
263
    
-
 
264
 
262
 
265
class obj(object):
263
class obj(object):
266
    def __init__(self, d):
264
    def __init__(self, d):
267
        for a, b in d.items():
265
        for a, b in d.items():
268
            if isinstance(b, (list, tuple)):
266
            if isinstance(b, (list, tuple)):
Line 321... Line 319...
321
    def __init__(self, appName, downloads, amount):
319
    def __init__(self, appName, downloads, amount):
322
        self.appName = appName
320
        self.appName = appName
323
        self.downloads = downloads
321
        self.downloads = downloads
324
        self.amount = amount
322
        self.amount = amount
325
        
323
        
326
        
-
 
327
        
-
 
328
        
-
 
329
        
-
 
330
324
class ProductInfo:
-
 
325
     
-
 
326
    def __init__(self, _id, skuBundleId, sourceProductId, sourceCategoryId, source_url ,source, source_id, category, category_id ,\
-
 
327
                 offer, cashback, available_price, mrp, thumbnail, brand, model_name, product_name, source_product_name, \
-
 
328
                 url, stock_status, in_stock, rank, identifier,addedOn,updatedOn,secondaryIdentifier,marketPlaceUrl,status, \
-
 
329
                 priceUpdatedOn, tagline, is_shortage, brand_id,maxPrice,buyBoxFlag,coupon,codAvailable,gross_price,ignorePricing,quantity, \
-
 
330
                 videoLink,showVideo,subCategoryId,subCategory,showMrp,shippingCost, showNetPrice):
-
 
331
        self. _id = _id
-
 
332
        self.addedOn =       addedOn
-
 
333
        self.available_price =       available_price
-
 
334
        self.brand   =       brand
-
 
335
        self.cashback=       cashback
-
 
336
        self.category=       category
-
 
337
        self.category_id     =       category_id
-
 
338
        self.identifier      =       identifier
-
 
339
        self.in_stock=       in_stock
-
 
340
        self.marketPlaceUrl  =       marketPlaceUrl
-
 
341
        self.model_name      =       model_name
-
 
342
        self.mrp     =       mrp
-
 
343
        self.product_name    =       product_name
-
 
344
        self.rank    =       rank
-
 
345
        self.secondaryIdentifier     =       secondaryIdentifier
-
 
346
        self.skuBundleId     =       skuBundleId
-
 
347
        self.source  =       source
-
 
348
        self.sourceCategoryId=sourceCategoryId
-
 
349
        self.sourceProductId=sourceProductId
-
 
350
        self.source_id=source_id
-
 
351
        self.source_product_name     =       source_product_name
-
 
352
        self.source_url      =       source_url
-
 
353
        self.status  =       status
-
 
354
        self.stock_status    =       stock_status
-
 
355
        self.thumbnail       =       thumbnail
-
 
356
        self.updatedOn       =       updatedOn
-
 
357
        self.url     =       url
-
 
358
        self.priceUpdatedOn  =       priceUpdatedOn
-
 
359
        self.offer   =       offer
-
 
360
        self.tagline =       tagline
-
 
361
        self.is_shortage     =       is_shortage
-
 
362
        self.brand_id=       brand_id
-
 
363
        self.maxPrice=       maxPrice
-
 
364
        self.buyBoxFlag      =       buyBoxFlag
-
 
365
        self.coupon  =       coupon
-
 
366
        self.codAvailable    =       codAvailable
-
 
367
        self.gross_price     =       gross_price
-
 
368
        self.ignorePricing   =       ignorePricing
-
 
369
        self.quantity=       quantity
-
 
370
        self.videoLink       =       videoLink
-
 
371
        self.showVideo       =       showVideo
-
 
372
        self.subCategoryId   =       subCategoryId
-
 
373
        self.subCategory     =       subCategory
-
 
374
        self.showMrp =       showMrp
-
 
375
        self.shippingCost    =       shippingCost
-
 
376
        self.showNetPrice = showNetPrice 
-
 
377