Subversion Repositories SmartDukaan

Rev

Rev 19247 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19247 Rev 19317
Line 1... Line 1...
1
from dtr.utils import FetchLivePrices, AddDataToMaster
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
import traceback
3
 
4
 
4
class DtrServiceHandler:
5
class DtrServiceHandler:
5
    '''
6
    '''
6
    classdocs
7
    classdocs
7
    '''
8
    '''
Line 32... Line 33...
32
        For checking whether service is alive or not.
33
        For checking whether service is alive or not.
33
        """
34
        """
34
        return True
35
        return True
35
    
36
    
36
    def addItemsInBulk(self, bulkItemsList):
37
    def addItemsInBulk(self, bulkItemsList):
-
 
38
        try:
37
        return AddDataToMaster.addData(bulkItemsList)
39
            return AddDataToMaster.addData(bulkItemsList)
-
 
40
        except:
-
 
41
            traceback.print_exc()
38
            
42
            
39
        
43
        
40
    def closeSession(self):
44
    def closeSession(self):
41
        pass
45
        pass
42
    
46