Subversion Repositories SmartDukaan

Rev

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

Rev 14015 Rev 14021
Line 53... Line 53...
53
                'Could not decode the request body. The '
53
                'Could not decode the request body. The '
54
                'JSON was incorrect.')
54
                'JSON was incorrect.')
55
        try:
55
        try:
56
            store = main.getStore(req.get_param_as_int("storeId"))
56
            store = main.getStore(req.get_param_as_int("storeId"))
57
            if req.get_param_as_int("storeId") == 1:
57
            if req.get_param_as_int("storeId") == 1:
-
 
58
                print "RAWHTML ----",req_obj['html'][0]
58
                result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
59
                result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
59
                resp.body = json.dumps({'result':result}, encoding='utf-8')
60
                resp.body = json.dumps({'result':result}, encoding='utf-8')
60
            else:
61
            else:
61
                resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
62
                resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
62
        except:
63
        except: