Subversion Repositories SmartDukaan

Rev

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

Rev 14796 Rev 14822
Line 18... Line 18...
18
                raise
18
                raise
19
            return [to_t_livePricing(pricing) for pricing in pricing_info]
19
            return [to_t_livePricing(pricing) for pricing in pricing_info]
20
        except Exception as e:
20
        except Exception as e:
21
            print "Dtr handler exception ",e
21
            print "Dtr handler exception ",e
22
            return [to_t_livePricing(pricing) for pricing in [{}]]
22
            return [to_t_livePricing(pricing) for pricing in [{}]]
-
 
23
    
-
 
24
    def isAlive(self, ):
-
 
25
        """
-
 
26
        For checking weather service is active alive or not.
23
            
27
        """
-
 
28
        return True
24
                   
29
                   
25
if __name__ == '__main__':
30
if __name__ == '__main__':
26
    dt  = DtrServiceHandler()
31
    dt  = DtrServiceHandler()
27
    print dt.getLatestPricing(100, 1)
32
    print dt.getLatestPricing(100, 1)