Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 5562:70df783c4c0b REST-rebased
Cleanup, fixed a bug with delete action
Change the returned type of every action from JSON to list/object
committer: Ralf Schlatterbeck <rsc@runtux.com>
| author | Chau Nguyen <dangchau1991@yahoo.com> |
|---|---|
| date | Wed, 30 Jan 2019 10:26:33 +0100 |
| parents | d75aa88c2a99 |
| children | edab9daa8015 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Jan 30 10:26:33 2019 +0100 +++ b/roundup/cgi/client.py Wed Jan 30 10:26:33 2019 +0100 @@ -488,10 +488,6 @@ self.write(output) def handle_rest(self): - # Pull the parameters data out of the form. The "value" attribute - # will be the raw content of the request. - input = self.form.value - # Set the charset and language self.determine_charset() self.determine_language() @@ -502,7 +498,8 @@ # Call rest library to handle the request handler = rest.RestfulInstance(self.db) - output = handler.dispatch(self.env['REQUEST_METHOD'], self.path, input) + output = handler.dispatch(self.env['REQUEST_METHOD'], self.path, + self.form) # self.setHeader("Content-Type", "text/xml") self.setHeader("Content-Length", str(len(output)))
