Subversion Repositories SmartDukaan

Rev

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

Rev 18739 Rev 19247
Line 1... Line 1...
1
from dtr.utils import FetchLivePrices
1
from dtr.utils import FetchLivePrices, AddDataToMaster
2
from shop2020.model.v1.dtr.impl.Convertors import to_t_livePricing
2
from shop2020.model.v1.dtr.impl.Convertors import to_t_livePricing
3
 
3
 
4
class DtrServiceHandler:
4
class DtrServiceHandler:
5
    '''
5
    '''
6
    classdocs
6
    classdocs
Line 31... Line 31...
31
        """
31
        """
32
        For checking whether service is alive or not.
32
        For checking whether service is alive or not.
33
        """
33
        """
34
        return True
34
        return True
35
    
35
    
-
 
36
    def addItemsInBulk(self, bulkItemsList):
-
 
37
        return AddDataToMaster.addData(bulkItemsList)
-
 
38
            
-
 
39
        
36
    def closeSession(self):
40
    def closeSession(self):
37
        pass
41
        pass
-
 
42
    
38
                   
43
                   
39
if __name__ == '__main__':
44
if __name__ == '__main__':
40
    dt  = DtrServiceHandler()
45
    dt  = DtrServiceHandler()
41
    print dt.getLatestPricing(100, 1)
46
    print dt.getLatestPricing(100, 1)