Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 5559:3d80e7752783 REST-rebased
Added POST and DELETE
[[Ralf Schlatterbeck: Add *all* http methods in roundup_server.py as
done on the bugs.python.org branch]]
committer: Ralf Schlatterbeck <rsc@runtux.com>
| author | Chau Nguyen <dangchau1991@yahoo.com> |
|---|---|
| date | Wed, 30 Jan 2019 10:25:12 +0100 |
| parents | fb9abb842f36 |
| children | 5df309febe49 |
comparison
equal
deleted
inserted
replaced
| 5558:1bef1076ad12 | 5559:3d80e7752783 |
|---|---|
| 253 the server log for more information.</p>'''%ts)) | 253 the server log for more information.</p>'''%ts)) |
| 254 # out to the logfile | 254 # out to the logfile |
| 255 print('EXCEPTION AT', ts) | 255 print('EXCEPTION AT', ts) |
| 256 traceback.print_exc() | 256 traceback.print_exc() |
| 257 | 257 |
| 258 do_GET = do_POST = do_HEAD = run_cgi | 258 do_GET = do_POST = do_HEAD = do_PUT = do_DELETE = do_PATCH = run_cgi |
| 259 | 259 |
| 260 def index(self): | 260 def index(self): |
| 261 ''' Print up an index of the available trackers | 261 ''' Print up an index of the available trackers |
| 262 ''' | 262 ''' |
| 263 keys = list(self.TRACKER_HOMES.keys()) | 263 keys = list(self.TRACKER_HOMES.keys()) |
