Subversion Repositories SmartDukaan

Rev

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

Rev 13886 Rev 13887
Line 47... Line 47...
47
        try:
47
        try:
48
            userId = req.get_param_as_int("userId")
48
            userId = req.get_param_as_int("userId")
49
            storeId = req.get_param_as_int("storeId")
49
            storeId = req.get_param_as_int("storeId")
50
            result = main.getStore(storeId).getTrackingUrls(userId)
50
            result = main.getStore(storeId).getTrackingUrls(userId)
51
            print result
51
            print result
52
            return json.dumps({'result':result}, encoding='utf-8')
52
            resp.body = json.dumps({'result':result}, encoding='utf-8')
53
        except ValueError:
53
        except ValueError:
54
            raise falcon.HTTPError(falcon.HTTP_400,
54
            raise falcon.HTTPError(falcon.HTTP_400,
55
                'Malformed JSON',
55
                'Malformed JSON',
56
                'Could not decode the request body. The '
56
                'Could not decode the request body. The '
57
                'JSON was incorrect.')
57
                'JSON was incorrect.')