Subversion Repositories SmartDukaan

Rev

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

Rev 14371 Rev 14435
Line 12... Line 12...
12
        '''
12
        '''
13
        
13
        
14
    def getLatestPricing(self, skuBundleId, source_id):
14
    def getLatestPricing(self, skuBundleId, source_id):
15
        try:
15
        try:
16
            pricing_info = FetchLivePrices.getLatestPrice(skuBundleId, source_id)
16
            pricing_info = FetchLivePrices.getLatestPrice(skuBundleId, source_id)
17
            print pricing_info
17
            if len(pricing_info) == 0:
-
 
18
                return [to_t_livePricing(pricing) for pricing in [{}]]
18
            return [to_t_livePricing(pricing) for pricing in pricing_info]
19
            return [to_t_livePricing(pricing) for pricing in pricing_info]
19
        except:
20
        except:
20
            return []
21
            return []
21
            
22
            
22
                   
23
                   
23
if __name__ == '__main__':
24
if __name__ == '__main__':
24
    print "hello"
25
    dt  = DtrServiceHandler()
-
 
26
    print dt.getLatestPricing(100, 1)