Subversion Repositories SmartDukaan

Rev

Rev 5586 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
155 ashish 1
'''
3124 rajveer 2
Updated on 31-Aug-2011
155 ashish 3
 
3124 rajveer 4
@author: rajveer
155 ashish 5
'''
5944 mandeep.dh 6
from shop2020.thriftpy.model.v1.catalog.CatalogService import Client
3124 rajveer 7
from shop2020.clients.GenericClient import GenericClient
155 ashish 8
 
3124 rajveer 9
class CatalogClient(GenericClient):
10
 
5586 phani.kuma 11
    def __init__(self, host_key = "catalog_service_server_host", port_key = "catalog_service_server_port"):
12
        GenericClient.__init__(self, host_key, port_key)
574 chandransh 13
        self.__start__()
155 ashish 14
 
15
    def __start__(self):
3124 rajveer 16
        self.client = Client(self.protocol)
155 ashish 17
 
18
    def get_client(self):
3124 rajveer 19
        return self.client