Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 5568:edab9daa8015 REST-rebased
Make objects returned by REST follow the standard
Making objects returned by REST follow the standard (wrapped by a
dictionary, in either 'data' or 'error' field)
Temporally added the client to REST so REST can make changes to HTTP
Status code and Header
committer: Ralf Schlatterbeck <rsc@runtux.com>
| author | Chau Nguyen <dangchau1991@yahoo.com> |
|---|---|
| date | Wed, 30 Jan 2019 10:26:34 +0100 |
| parents | 70df783c4c0b |
| children | 79da1ca2f94b |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Jan 30 10:26:34 2019 +0100 +++ b/roundup/cgi/client.py Wed Jan 30 10:26:34 2019 +0100 @@ -497,7 +497,7 @@ self.check_anonymous_access() # Call rest library to handle the request - handler = rest.RestfulInstance(self.db) + handler = rest.RestfulInstance(self, self.db) output = handler.dispatch(self.env['REQUEST_METHOD'], self.path, self.form)
