Re: [Zope3-Users] views based on request method (GET, POST, etc.)

2006-09-13 Thread Jan-Wijbrand Kolman
Stephan Richter wrote: On Tuesday 12 September 2006 07:38, Jan-Wijbrand Kolman wrote: But I have the feeling this can be done more elegantly. I did notice something in this direction in zope/app/dav/configure.zcml, but I'm not sure this actually helps. It could be I overlook something very very

[Zope3-Users] views based on request method (GET, POST, etc.)

2006-09-12 Thread Jan-Wijbrand Kolman
Hi, Is it possible to register (browser) views based on the request method? E.g. to do something for GET and something else for POST requests? Currently I do something like this (where FooView is registered as the default view for some interface): class FooView(BrowserView): ... def

Re: [Zope3-Users] views based on request method (GET, POST, etc.)

2006-09-12 Thread Stephan Richter
On Tuesday 12 September 2006 07:38, Jan-Wijbrand Kolman wrote: But I have the feeling this can be done more elegantly. I did notice something in this direction in zope/app/dav/configure.zcml, but I'm not sure this actually helps. It could be I overlook something very very obvious... Hi JW,