Mercurial > p > roundup > code
comparison roundup/instance.py @ 5000:082ee3ded101 routing
Improve docs for registerHandler
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Fri, 11 Sep 2015 08:16:38 +0300 |
| parents | 7920d700e580 |
| children | 01d14361cae7 |
comparison
equal
deleted
inserted
replaced
| 4999:e9077def7678 | 5000:082ee3ded101 |
|---|---|
| 233 self.cgi_actions[name] = action | 233 self.cgi_actions[name] = action |
| 234 else: | 234 else: |
| 235 self.cgi_actions[name] = action | 235 self.cgi_actions[name] = action |
| 236 | 236 |
| 237 def registerHandler(self, urlpath, function): | 237 def registerHandler(self, urlpath, function): |
| 238 """Add handler for urlpath. `urlpath` is a simple rule for | 238 """Add handler for urlpath. `urlpath` is a rule for |
| 239 roundup.web.router that is matched before Roundup makes DB | 239 matching urls in Django-like format and is processed |
| 240 lookups for classes that are available to render. | 240 by roundup.web.router before Roundup tries to match |
| 241 urls against class names in DB. | |
| 241 | 242 |
| 242 New in version 1.6.x""" | 243 New in version 1.6.x""" |
| 243 self.web_handlers[urlpath] = function | 244 self.web_handlers[urlpath] = function |
| 244 | 245 |
| 245 def registerUtil(self, name, function): | 246 def registerUtil(self, name, function): |
