Do custom predicates solve your problem?
def extra_params(*params):
def _predicate(context, request):
request.extra_params = params
return True
@view_config(route_name='a_route', renderer='a_renderer',
custom_predicates=[extra_params('some_param')])
def v(request)
params = request.extra_params
return {}
If not, view_config also supports a few other constructs for wrapping
views (such as decorator).
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to
pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
pylons-discus...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/pylons-discuss?hl=en.