Subversion Repositories SmartDukaan

Rev

Rev 2821 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2821 chandransh 1
'''
3124 rajveer 2
Updated on 31-Aug-2011
2821 chandransh 3
 
3124 rajveer 4
@author: rajveer
2821 chandransh 5
'''
3124 rajveer 6
from shop2020.thriftpy.warehouse.WarehouseService import Client
7
from shop2020.clients.GenericClient import GenericClient
2821 chandransh 8
 
3124 rajveer 9
class UserClient(GenericClient):
10
 
2821 chandransh 11
    def __init__(self):
3124 rajveer 12
        GenericClient.__init__(self, "warehouse_service_server_host", "warehouse_service_server_port")
2821 chandransh 13
        self.__start__()
14
 
15
    def __start__(self):
3124 rajveer 16
        self.client = Client(self.protocol)
2821 chandransh 17
 
18
    def get_client(self):
3124 rajveer 19
        return self.client