diff options
author | Jonathan LaCour <jonathan@cleverdevil.org> | 2010-11-18 11:17:39 -0500 |
---|---|---|
committer | Jonathan LaCour <jonathan@cleverdevil.org> | 2010-11-18 11:17:39 -0500 |
commit | 307bb514c69e94dbd1395f951a167d895225666d (patch) | |
tree | f744ff3c8698690e1561221e10bc8ba171b37303 /pecan/decorators.py | |
parent | 17df37c09a5c45a618f79bfbbbcd0708a3a65057 (diff) | |
download | pecan-307bb514c69e94dbd1395f951a167d895225666d.tar.gz |
Making it so that generic controller handlers cannot be accessed
directly.
Diffstat (limited to 'pecan/decorators.py')
-rw-r--r-- | pecan/decorators.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pecan/decorators.py b/pecan/decorators.py index 8a330b7..6069e7c 100644 --- a/pecan/decorators.py +++ b/pecan/decorators.py @@ -8,6 +8,7 @@ def _cfg(f): def when_for(controller): def when(method): def decorate(f): + _cfg(f)['generic_handler'] = True controller.pecan['generic_handlers'][method.upper()] = f return f return decorate |