Subversion Repositories SmartDukaan

Rev

Rev 14747 | Rev 14843 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14747 Rev 14803
Line 12... Line 12...
12
            'Accept-Language' : 'en-US,en;q=0.8',                     
12
            'Accept-Language' : 'en-US,en;q=0.8',                     
13
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
13
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
14
            'Connection':'keep-alive',
14
            'Connection':'keep-alive',
15
            'Accept-Encoding' : 'gzip,deflate,sdch'
15
            'Accept-Encoding' : 'gzip,deflate,sdch'
16
        }
16
        }
17
PROXY_URL = "http://192.161.163.60:8800"
17
PROXY_URL = "http://192.161.160.203:8800/"
18
 
18
 
19
def get_mongo_connection(host='localhost', port=27017):
19
def get_mongo_connection(host='localhost', port=27017):
20
    global con
20
    global con
21
    if con is None:
21
    if con is None:
22
        print "Establishing connection %s host and port %d" %(host,port)
22
        print "Establishing connection %s host and port %d" %(host,port)