Subversion Repositories SmartDukaan

Rev

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

Rev 3135 Rev 6990
Line 6... Line 6...
6
from shop2020.thriftpy.model.v1.order.TransactionService import Client
6
from shop2020.thriftpy.model.v1.order.TransactionService import Client
7
from shop2020.clients.GenericClient import GenericClient
7
from shop2020.clients.GenericClient import GenericClient
8
 
8
 
9
class TransactionClient(GenericClient):
9
class TransactionClient(GenericClient):
10
            
10
            
11
    def __init__(self):
-
 
12
        GenericClient.__init__(self, "transaction_service_server_host", "transaction_service_server_port")
11
    def __init__(self, host_key = "transaction_service_server_host", port_key="transaction_service_server_port"):
-
 
12
        GenericClient.__init__(self, host_key, port_key)
13
        self.__start__()
13
        self.__start__()
14
        
14
        
15
    def __start__(self):
15
    def __start__(self):
16
        self.client = Client(self.protocol)
16
        self.client = Client(self.protocol)
17
        
17