Subversion Repositories SmartDukaan

Rev

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

Rev 16371 Rev 16398
Line 25... Line 25...
25
 
25
 
26
PUSH_NOTIFICATION_URL='http://api.profittill.com/admin/users/push'
26
PUSH_NOTIFICATION_URL='http://api.profittill.com/admin/users/push'
27
DTR_API_BASIC_AUTH = base64.encodestring('%s:%s' % ("dtr", "dtr18Feb2015")).replace('\n', '')
27
DTR_API_BASIC_AUTH = base64.encodestring('%s:%s' % ("dtr", "dtr18Feb2015")).replace('\n', '')
28
statusMap = {1:'Active',2:'EOL',3:'In Process',4:'Exclusive'}
28
statusMap = {1:'Active',2:'EOL',3:'In Process',4:'Exclusive'}
29
 
29
 
-
 
30
CB_INIT = 'Waiting Confirmation'
-
 
31
CB_PENDING = 'Pending'
-
 
32
CB_CREDIT_IN_PROCESS = 'Credit in process'
-
 
33
CB_CREDITED = 'Credited to wallet'
-
 
34
CB_NA = 'Not Applicable'
-
 
35
CB_APPROVED = 'Approved'
-
 
36
CB_REJECTED = 'Rejected'
-
 
37
CB_ONHOLD = 'On hold'
-
 
38
CB_CANCELLED = 'Cancelled'
-
 
39
 
-
 
40
 
30
def get_mongo_connection(host='localhost', port=27017):
41
def get_mongo_connection(host='localhost', port=27017):
31
    global con
42
    global con
32
    if con is None:
43
    if con is None:
33
        print "Establishing connection %s host and port %d" %(host,port)
44
        print "Establishing connection %s host and port %d" %(host,port)
34
        try:
45
        try: