Subversion Repositories SmartDukaan

Rev

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

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