| Line 82... |
Line 82... |
| 82 |
|
82 |
|
| 83 |
AFFILIATE_OFFER_API= {1:"https://www.spicesafar.com/FreeBapp/fetchOffersSM?deviceId=%s&retailerCode=%d"}
|
83 |
AFFILIATE_OFFER_API= {1:"https://www.spicesafar.com/FreeBapp/fetchOffersSM?deviceId=%s&retailerCode=%d"}
|
| 84 |
AFFILIATE_OFFER_DESC_API = {1:"https://www.spicesafar.com/FreeBapp/individualOffersSM?deviceId=%s&offerId=%s&retailerCode=%d"}
|
84 |
AFFILIATE_OFFER_DESC_API = {1:"https://www.spicesafar.com/FreeBapp/individualOffersSM?deviceId=%s&offerId=%s&retailerCode=%d"}
|
| 85 |
CREDIT_TYPE_ORDER = "Order"
|
85 |
CREDIT_TYPE_ORDER = "Order"
|
| 86 |
CREDIT_TYPE_APP = "App"
|
86 |
CREDIT_TYPE_APP = "App"
|
| - |
|
87 |
CREDIT_TYPE_REFUND = "Refund"
|
| - |
|
88 |
CREDIT_TYPE_OFFER = "Offer"
|
| - |
|
89 |
CREDIT_TYPE_ADJUSTMENT = "Adjustment"
|
| 87 |
SUB_CATEGORY_MAP = {7:'Memory Card',8:'Cable',9:'USB Lights',10:"Screen Magnifier",11:"Car Charger",12:"Power Bank",13:"Pendrive",14:"Combo",15:"Charger",16:"Bluetooth Headset",17:"Speaker", \
|
90 |
SUB_CATEGORY_MAP = {7:'Memory Card',8:'Cable',9:'USB Lights',10:"Screen Magnifier",11:"Car Charger",12:"Power Bank",13:"Pendrive",14:"Combo",15:"Charger",16:"Bluetooth Headset",17:"Speaker", \
|
| 88 |
18:"Adapter",19:"Cases",20:"Screen Guard",21:"Earphone",22:"Card Reader",23:"Mobile Holder",24:"AUX Cable",25:"OTG Cable",26:"Selfie Stick",27:"Back Cover",28:"Tempered Glass",29:"Battery", \
|
91 |
18:"Adapter",19:"Cases",20:"Screen Guard",21:"Earphone",22:"Card Reader",23:"Mobile Holder",24:"AUX Cable",25:"OTG Cable",26:"Selfie Stick",27:"Back Cover",28:"Tempered Glass",29:"Battery", \
|
| 89 |
30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote'}
|
92 |
30:"Usb Hub",31:"Portable Music Player",32:"Smart Watch",33:'Flip Cover',34:'Connector',35:'TV Remote'}
|
| 90 |
|
93 |
|
| 91 |
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
|
94 |
CATEGORY_MAP = {3:'Mobiles',5:'Tablets',6:'Accessories'}
|
| - |
|
95 |
REFUND_ADJUSTMENT_MAP={0:'Pending For Approval',1:'Approved',2:'Cancelled'}
|
| 92 |
|
96 |
|
| 93 |
def get_mongo_connection(host='localhost', port=27017):
|
97 |
def get_mongo_connection(host='localhost', port=27017):
|
| 94 |
global con
|
98 |
global con
|
| 95 |
if con is None:
|
99 |
if con is None:
|
| 96 |
print "Establishing connection %s host and port %d" %(host,port)
|
100 |
print "Establishing connection %s host and port %d" %(host,port)
|