Re: [Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-19 Thread Dieter Maurer
yuppie wrote at 2005-10-17 15:24 +0200: > ... >I don't think so: > >1.) If you start rendering the default view before the controller has >finished you need extra code to abort the rendering if necessary. E.g. a >tal:condition that wraps the whole template. > >2.) A cleaner separation of controll

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
Hi Tres! Tres Seaver wrote: Lennart Regebro wrote: On 10/17/05, yuppie wrote: I know that pattern, but I don't like it. [...] The code on the goldegg-folder_contents branch processes the input in the __call__ method of the view class. The template is only invoked if needed. It's much cleane

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
Hi Lennart! Lennart Regebro wrote: On 10/17/05, yuppie wrote: I know that pattern, but I don't like it. [...] The code on the goldegg-folder_contents branch processes the input in the __call__ method of the view class. The template is only invoked if needed. It's much cleaner to use the templ

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: > On 10/17/05, yuppie <[EMAIL PROTECTED]> wrote: > >>I know that pattern, but I don't like it. [...] >>The code on the goldegg-folder_contents branch processes the input in >>the __call__ method of the view class. The template i

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread Lennart Regebro
On 10/17/05, yuppie <[EMAIL PROTECTED]> wrote: > I know that pattern, but I don't like it. [...] > The code on the goldegg-folder_contents branch processes the input in > the __call__ method of the view class. The template is only invoked if > needed. It's much cleaner to use the template just for

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
Hi Lennart! Lennart Regebro wrote: The standard Zope3-ish way is to have a m,ethod called Update() which you call every time the views template is displayed. This method can prepare all the data to be displayed, as well as handle any form postings. Instead of checking on POST I usually check o

Re: [Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread Lennart Regebro
The standard Zope3-ish way is to have a m,ethod called Update() which you call every time the views template is displayed. This method can prepare all the data to be displayed, as well as handle any form postings. Instead of checking on POST I usually check on the button-presses, but of course if

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-16 Thread yuppie
Hi Jens! Jens Vagelpohl wrote: On 16 Oct 2005, at 16:21, yuppie wrote: Jens Vagelpohl wrote: Doing some more work on Five views for CMF right now. I have the edit view hooked up and working find for my sample content type. The view class given to me by Tres defines a POST method, but I ca

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-16 Thread Jens Vagelpohl
On 16 Oct 2005, at 16:21, yuppie wrote: Jens Vagelpohl wrote: Doing some more work on Five views for CMF right now. I have the edit view hooked up and working find for my sample content type. The view class given to me by Tres defines a POST method, but I can't seem to get that hooked up

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-16 Thread yuppie
Jens Vagelpohl wrote: Doing some more work on Five views for CMF right now. I have the edit view hooked up and working find for my sample content type. The view class given to me by Tres defines a POST method, but I can't seem to get that hooked up correctly. These sentences don't make any se