Subversion Repositories SmartDukaan

Rev

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

Rev 20046 Rev 20309
Line 49... Line 49...
49
            'Accept-Language' : 'en-US,en;q=0.8',                     
49
            'Accept-Language' : 'en-US,en;q=0.8',                     
50
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
50
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
51
            'Connection':'keep-alive',
51
            'Connection':'keep-alive',
52
            'Accept-Encoding' : 'gzip,deflate,sdch'
52
            'Accept-Encoding' : 'gzip,deflate,sdch'
53
        }
53
        }
54
PROXY_MESH_LIVE = "ch.proxymesh.com:31280"
54
PROXY_MESH_LIVE = "us.proxymesh.com:31280"
55
PROXY_MESH_GENERAL = "de.proxymesh.com:31280"
55
PROXY_MESH_GENERAL = "us-il.proxymesh.com:31280"
56
PROXY_FLIPKART = "117.240.187.35:3128"
56
PROXY_FLIPKART = "117.240.187.35:3128"
57
 
57
 
58
PUSH_NOTIFICATION_URL='http://api.profittill.com/admin/users/push'
58
PUSH_NOTIFICATION_URL='http://api.profittill.com/admin/users/push'
59
DTR_API_BASIC_AUTH = base64.encodestring('%s:%s' % ("dtr", "dtr18Feb2015")).replace('\n', '')
59
DTR_API_BASIC_AUTH = base64.encodestring('%s:%s' % ("dtr", "dtr18Feb2015")).replace('\n', '')
60
EMAIL_CRM_PUSH_URL = 'http://staging.profittill.com/feedbacks/crm_mail'
60
EMAIL_CRM_PUSH_URL = 'http://staging.profittill.com/feedbacks/crm_mail'
Line 103... Line 103...
103
        except Exception, e:
103
        except Exception, e:
104
            print e
104
            print e
105
            return None
105
            return None
106
    return con
106
    return con
107
 
107
 
108
def get_mongo_connection_dtr_data(host='45.33.50.227', port=27017):
108
def get_mongo_connection_dtr_data(host='192.168.161.154', port=27017):
109
    global conDtrData
109
    global conDtrData
110
    if conDtrData is None:
110
    if conDtrData is None:
111
        print "Establishing connection %s host and port %d" %(host,port)
111
        print "Establishing connection %s host and port %d" %(host,port)
112
        try:
112
        try:
113
            conDtrData = pymongo.MongoClient(host, port)
113
            conDtrData = pymongo.MongoClient(host, port)