Subversion Repositories SmartDukaan

Rev

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

Rev 20309 Rev 20347
Line 92... Line 92...
92
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
92
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
93
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
93
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
94
 
94
 
95
SUB_CATEGORY_HEADER_RANKING = [26,13,15,24,38,39,35,11,36,7,29,23,28,8,21,12,25,27,20,32,31,16,34,10,17,9,22,33]
95
SUB_CATEGORY_HEADER_RANKING = [26,13,15,24,38,39,35,11,36,7,29,23,28,8,21,12,25,27,20,32,31,16,34,10,17,9,22,33]
96
 
96
 
-
 
97
DEAL_PRIORITY = [4, 2, 1, 5, 6, 7, 3]  #Increasing order of source deal priority
-
 
98
 
97
def get_mongo_connection(host='localhost', port=27017):
99
def get_mongo_connection(host='localhost', port=27017):
98
    global con
100
    global con
99
    if con is None:
101
    if con is None:
100
        print "Establishing connection %s host and port %d" %(host,port)
102
        print "Establishing connection %s host and port %d" %(host,port)
101
        try:
103
        try: