Subversion Repositories SmartDukaan

Rev

Rev 14435 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

from dtr.utils import FetchLivePrices
from shop2020.model.v1.dtr.impl.Convertors import to_t_livePricing

class DtrServiceHandler:
    '''
    classdocs
    '''
    
    def __init__(self):
        '''
        Constructor
        '''
        
    def getLatestPricing(self, skuBundleId, source_id):
        try:
            pricing_info = FetchLivePrices.getLatestPrice(skuBundleId, source_id)
            print pricing_info
            return [to_t_livePricing(pricing) for pricing in pricing_info]
        except:
            return []
            
                   
if __name__ == '__main__':
    print "hello"