You haven't shown me the signature of your decorator or any errors.
Ignoring that, jsonrpc_method, similar to view_config in pyramid,
supports a `decorator` argument that guarantees you a common signature
for decorators:
def common_rpc(view):
def _wrapped(context, request):
# do stuff with request.rpc_args or whatever else
return view(context, request)
return _wrapped
@jsonrpc_method(endpoint="jsonrpc", method="blahblah", decorator=common_rpc)
def blahblah_view(request, .. params):
return {}
> --
> 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.
>