| Line 2357... |
Line 2357... |
| 2357 |
id_list = req.get_param('id_list')
|
2357 |
id_list = req.get_param('id_list')
|
| 2358 |
type = req.get_param('type')
|
2358 |
type = req.get_param('type')
|
| 2359 |
result = Mongo.getBrandSubCategoryInfo(category_id, id_list, type)
|
2359 |
result = Mongo.getBrandSubCategoryInfo(category_id, id_list, type)
|
| 2360 |
resp.body = dumps(result)
|
2360 |
resp.body = dumps(result)
|
| 2361 |
|
2361 |
|
| - |
|
2362 |
class RefundAmountWallet():
|
| - |
|
2363 |
def on_post(self,req,resp):
|
| - |
|
2364 |
jsonReq = json.loads(req.stream.read(), encoding='utf-8')
|
| - |
|
2365 |
if Mongo.refundAmountInWallet(jsonReq):
|
| - |
|
2366 |
resp.body = "{\"result\":\"success\"}"
|
| - |
|
2367 |
else:
|
| - |
|
2368 |
resp.body = "{\"result\":\"failed\"}"
|
| - |
|
2369 |
|
| - |
|
2370 |
def on_get(self,req,resp):
|
| - |
|
2371 |
offset = req.get_param_as_int("offset")
|
| - |
|
2372 |
limit = req.get_param_as_int("limit")
|
| - |
|
2373 |
status = req.get_param("status")
|
| - |
|
2374 |
userRefundDetails = Mongo.fetchCrmRefundUsers(status,offset,limit)
|
| - |
|
2375 |
resp.body = json.dump(userRefundDetails,encoding='utf-8')
|
| - |
|
2376 |
|
| 2362 |
def main():
|
2377 |
def main():
|
| 2363 |
a = RetailerDetail()
|
2378 |
a = RetailerDetail()
|
| 2364 |
retailer = a.getNotActiveRetailer()
|
2379 |
retailer = a.getNotActiveRetailer()
|
| 2365 |
otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
|
2380 |
otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
|
| 2366 |
print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')
|
2381 |
print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')
|