Subversion Repositories SmartDukaan

Rev

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

Rev 14014 Rev 14015
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
                result = store.trackOrdersForUser(int(userId),req_obj['url'],req_obj['html'])
58
                result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
59
                resp.body = json.dumps({'result':result}, encoding='utf-8')
59
                resp.body = json.dumps({'result':result}, encoding='utf-8')
60
            else:
60
            else:
61
                resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
61
                resp.body = json.dumps({'result':'NOT_IMPLEMENTED'}, encoding='utf-8')
62
        except:
62
        except:
63
            resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')
63
            resp.body = json.dumps({'result':'PARSE_ERROR'}, encoding='utf-8')