| Line 77... |
Line 77... |
| 77 |
if req.get_param_as_int("storeId") == 1:
|
77 |
if req.get_param_as_int("storeId") == 1:
|
| 78 |
result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
|
78 |
result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
|
| 79 |
resp.body = json.dumps({'result':result}, encoding='utf-8')
|
79 |
resp.body = json.dumps({'result':result}, encoding='utf-8')
|
| 80 |
else:
|
80 |
else:
|
| 81 |
resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
|
81 |
resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
|
| - |
|
82 |
'''
|
| - |
|
83 |
elif req.get_param_as_int("storeId") == 7:
|
| - |
|
84 |
if 'myprofile' in req_obj['url'][0]:
|
| - |
|
85 |
result = store.parseMyProfileForEmailId(int(userId),req_obj['url'][0],req_obj['html'][0])
|
| - |
|
86 |
else:
|
| - |
|
87 |
result = store.parseMyOrdersForEmailId(int(userId),req_obj['url'][0],req_obj['html'][0])
|
| - |
|
88 |
resp.body = json.dumps({'result':result}, encoding='utf-8')
|
| - |
|
89 |
'''
|
| 82 |
except:
|
90 |
except:
|
| 83 |
resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')
|
91 |
resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')
|
| 84 |
|
92 |
|
| 85 |
print "Returned from track POST", resp.body
|
93 |
print "Returned from track POST", resp.body
|
| 86 |
resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')
|
94 |
resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')
|