Subversion Repositories SmartDukaan

Rev

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

Rev 19651 Rev 19654
Line 89... Line 89...
89
                    30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote',36:'Bumper Case'}
89
                    30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote',36:'Bumper Case'}
90
 
90
 
91
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
91
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
92
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
92
REFUND_ADJUSTMENT_MAP={0:'Pending',1:'Approved',2:'Cancelled',3:'Credited'}
93
 
93
 
-
 
94
SUB_CATEGORY_HEADER_RANKING = [26,13,15,24,35,11,36,7,29,23,28,8,21,12,25,27,20,32,31,16,34,10,17,9,22,33]
-
 
95
 
94
def get_mongo_connection(host='localhost', port=27017):
96
def get_mongo_connection(host='localhost', port=27017):
95
    global con
97
    global con
96
    if con is None:
98
    if con is None:
97
        print "Establishing connection %s host and port %d" %(host,port)
99
        print "Establishing connection %s host and port %d" %(host,port)
98
        try:
100
        try: