Mercurial > p > roundup > code
comparison roundup/web/router.py @ 4943:7920d700e580 routing
Add support for extensions to provide custom pages to Roundup
and update CHANGES.txt
1. Added registerHandler() extension point to instance.Tracker
to register URL handlers for specific routes
2. Added processing of extension routes to client.cgi
3. Added example plugins/extensions/custompage.py
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Tue, 25 Nov 2014 17:29:38 +0300 |
| parents | 997fa47c92d5 |
| children | d8e0af01543b |
comparison
equal
deleted
inserted
replaced
| 4942:ba1ec6d13e76 | 4943:7920d700e580 |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # This Router component was written by techtonik@gmail.com and it's been | |
| 3 # placed in the Public Domain. Copy and modify to your heart's content. | |
| 4 | |
| 2 """ | 5 """ |
| 3 The purpose of router is to make Roundup URL scheme configurable | 6 The purpose of router is to make Roundup URL scheme configurable |
| 4 and allow extensions add their own handlers and URLs to tracker. | 7 and allow extensions add their own handlers and URLs to tracker. |
| 5 | |
| 6 Public domain work by: | |
| 7 anatoly techtonik <techtonik@gmail.com> | |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 DEBUG = False | 10 DEBUG = False |
| 11 | 11 |
| 12 | 12 |
