Subversion Repositories SmartDukaan

Rev

Rev 3135 | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Updated on 31-Aug-2011

@author: rajveer
'''
from shop2020.thriftpy.model.v1.order.TransactionService import Client
from shop2020.clients.GenericClient import GenericClient

class TransactionClient(GenericClient):
            
    def __init__(self, host_key = "transaction_service_server_host", port_key="transaction_service_server_port"):
        GenericClient.__init__(self, host_key, port_key)
        self.__start__()
        
    def __start__(self):
        self.client = Client(self.protocol)
        
    def get_client(self):
        return self.client