diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-10-18 02:27:43 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-10-18 02:27:43 +0000 |
| commit | 2cce431f02a37c119eacfc3dfa94af9fe3305de1 (patch) | |
| tree | f154dbf4937afb3f5d08ed497f6c4cac6f843144 /docs/tutorials | |
| parent | f276669b505cb0565dcf854f2e0e751151ccf836 (diff) | |
| download | pyramid-2cce431f02a37c119eacfc3dfa94af9fe3305de1.tar.gz pyramid-2cce431f02a37c119eacfc3dfa94af9fe3305de1.tar.bz2 pyramid-2cce431f02a37c119eacfc3dfa94af9fe3305de1.zip | |
- More than one ``@bfg_view`` decorator may now be stacked on top of
any number of others. Each invocation of the decorator registers a
single view. For instance, the following combination of decorators
and a function will register two views::
from repoze.bfg.view import bfg_view
@bfg_view(name='edit')
@bfg_view(name='change')
def edit(context, request):
pass
This makes it possible to associate more than one view configuration
for a single callable without requiring ZCML.
Diffstat (limited to 'docs/tutorials')
0 files changed, 0 insertions, 0 deletions
