Subversion Repositories SmartDukaan

Rev

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

Rev 13872 Rev 13886
Line 46... Line 46...
46
    def on_get(self, req, resp):
46
    def on_get(self, req, resp):
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
            return json.dumps({'result':result}, encoding='utf-8')
52
            return json.dumps({'result':result}, encoding='utf-8')
52
        except ValueError:
53
        except ValueError:
53
            raise falcon.HTTPError(falcon.HTTP_400,
54
            raise falcon.HTTPError(falcon.HTTP_400,
54
                'Malformed JSON',
55
                'Malformed JSON',
55
                'Could not decode the request body. The '
56
                'Could not decode the request body. The '