AW: [Zope3-dev] update called twice for editview
dev at projekt01.ch
dev at projekt01.ch
Mon Sep 13 08:51:16 EDT 2004
Stephan Richter wrote:
> Cc: Marius Gedminas
> Betreff: Re: [Zope3-dev] update called twice for editview
>
>
> On Monday 13 September 2004 08:33, Marius Gedminas wrote:
> > Lately I've acquired the habit of moving the view/update
> call directly
> > into the __call__ method of the view class:
> >
> > class MyView(BrowserView):
> >
> > template = ViewPageTemplateFile('foo.pt')
> >
> > def __call__(self):
> > self.status = self.update()
> > return self.template()
> >
> > The page template uses view/status and does not worry about
> > view/update.
>
> I like this. Maybe we can make this the default behavior for 3.1?
1+
for:
self.update()
1-
for:
template = ViewPageTemplateFile('foo.pt')
It's not possible to replace the template foo.pt
for this view (if needed for to support other skins).
Regards
Roger
More information about the Zope3-dev
mailing list