Le 18/03/2010 14:51, Stéphane Klein a écrit :
> Hi,
>
> I would like do something like that in View Configuration via ZCML :
>
> <view
>       context=".models.Hello"
>       view=".views.hello_world"
>       name="hello.html"
>       method="GET,POST"
>       />
>
> I don't want execute this view if request method is DELETE, OPTIONS…

This feature exist : it is "request_method".

http://docs.repoze.org/bfg/current/narr/views.html

Regards,
Stephane

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to