[Zope3-Users] View with template
Frank Burkhardt
fbo2 at gmx.net
Tue Nov 1 07:56:23 EST 2005
Hi,
On Mon, Oct 31, 2005 at 08:51:58AM +0100, Dominik Huber wrote:
[snip]
> >How can Zope be forced to use the template instead of __call__ing
> >the TestView-Object?
> >
> >
> If you use the the browser:form, browser:edit and/or browser:add
> directive your TestView will be mixed in automatically during the setup.
> In your example you are going to overwrite the __call__ method of the
> mixed-in base class which is invoking the template. If you like to
> overwrite the __call__ method, you have to call you base class too:
>
> class TestView(object):
> def __call__(self):
> # do something else
> return super(TestView, self).__call__()
Thank you - that's what I was looking for.
Regards,
Frank
More information about the Zope3-users
mailing list