Subversion Repositories SmartDukaan

Rev

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

Rev 14022 Rev 14024
Line 44... Line 44...
44
        
44
        
45
class Track():
45
class Track():
46
    def on_post(self, req, resp, userId):
46
    def on_post(self, req, resp, userId):
47
        try:
47
        try:
48
            string1 = req.stream.read()
48
            string1 = req.stream.read()
49
            print "string1 -----------", string1
-
 
50
            req_obj = urlparse.parse_qs(string1)
49
            req_obj = urlparse.parse_qs(string1)
51
        except ValueError:
50
        except ValueError:
52
            raise falcon.HTTPError(falcon.HTTP_400,
51
            raise falcon.HTTPError(falcon.HTTP_400,
53
                'Malformed JSON',
52
                'Malformed JSON',
54
                'Could not decode the request body. The '
53
                'Could not decode the request body. The '