From: Mercurial C. <th...@in...> - 2015-09-11 05:16:54
|
# HG changeset patch # User anatoly techtonik <tec...@gm...> # Date 1441948598 -10800 # Branch routing # Node ID 082ee3ded101c2ec974525208615c34b25d233df # Parent e9077def767829f0940b08282be9040bd4045b2a Improve docs for registerHandler diff -r e9077def7678 -r 082ee3ded101 roundup/instance.py --- a/roundup/instance.py Thu Sep 10 12:33:12 2015 +0300 +++ b/roundup/instance.py Fri Sep 11 08:16:38 2015 +0300 @@ -235,9 +235,10 @@ self.cgi_actions[name] = action def registerHandler(self, urlpath, function): - """Add handler for urlpath. `urlpath` is a simple rule for - roundup.web.router that is matched before Roundup makes DB - lookups for classes that are available to render. + """Add handler for urlpath. `urlpath` is a rule for + matching urls in Django-like format and is processed + by roundup.web.router before Roundup tries to match + urls against class names in DB. New in version 1.6.x""" self.web_handlers[urlpath] = function |