Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23671 govind 1
'''
23681 govind 2
Created on 25-Mar-2010
23671 govind 3
 
23681 govind 4
@author: ashish
23671 govind 5
'''
23681 govind 6
from shop2020.thriftpy.config.ttypes import ConfigException
7
from thrift.transport import TSocket
8
from thrift.transport.TTransport import TFramedTransport
9
from thrift.protocol.TBinaryProtocol import TBinaryProtocol
10
from shop2020.thriftpy.config import Configuration
23680 govind 11
from shop2020.config.client.ConfigClient import ConfigClient
23671 govind 12
 
23681 govind 13
 
23671 govind 14
 
15
if __name__ == '__main__':
23681 govind 16
    #test config client 
17
    try:
18
        config_client = ConfigClient()
23683 govind 19
        print config_client.get_property("live")
23681 govind 20
 
21
    except:
22
        print "error while putting up config client"