You can't specify more than one method per view tag, but this will work:

  <view
        context=".models.Hello"
        view=".views.hello_world"
        name="hello.html"
        request_method="GET"
        />

  <view
        context=".models.Hello"
        view=".views.hello_world"
        name="hello.html"
        request_method="POST"
        />

(the above register two view configurations for the same view callable, which 
will do what you want)

- C


On 3/18/10 9:51 AM, Stéphane Klein wrote:
> 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…
>
> If this feature not exists, can I create a bug report and maybe an patch
> to support it ?
>
> Thanks for your help,
> Regards,
> Stephane
>
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>


-- 
Chris McDonough
Agendaless Consulting, Fredericksburg VA
The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to