Subversion Repositories SmartDukaan

Rev

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

Rev 18257 Rev 18440
Line 395... Line 395...
395
            if not callable(value) and not key.startswith('_')])
395
            if not callable(value) and not key.startswith('_')])
396
        if classkey is not None and hasattr(obj, "__class__"):
396
        if classkey is not None and hasattr(obj, "__class__"):
397
            data[classkey] = obj.__class__.__name__
397
            data[classkey] = obj.__class__.__name__
398
        return data
398
        return data
399
    else:
399
    else:
400
        return obj
-
 
401
400
        return obj
-
 
401
    
-
 
402
def getSkuData(storeId, identifier):
-
 
403
    if storeId in (1,2,4,5,6):
-
 
404
        skuData = get_mongo_connection().Catalog.MasterData.find_one({'identifier':identifier, 'source_id':storeId})
-
 
405
    elif storeId == 3:
-
 
406
        skuData = get_mongo_connection().Catalog.MasterData.find_one({'secondaryIdentifier':identifier, 'source_id':storeId})
-
 
407
    return skuData
-
 
408