[Zope3-dev] Re: wading through zcml...
Chris Withers
chris at simplistix.co.uk
Mon Dec 11 13:29:51 EST 2006
Martin Aspeli wrote:
>> Why can't IView (or whatever it is) just specify that the constructor
>> must accept a request, response and a template instance?
>
> Because the template may not be passed in, and even if it is, where
> would it be constructed and how would it be found again?
See my currying comment later in the thread.
> then you may as well not have a 'template' attribute for <browser:page
> If you have it done in ZCML, though, you can get a template-only view
> without any Python at all, though:
>
> <browser:page
> for="*"
> template="mytemplate.pt"
> name="my_view"
> permission="zope.Public"
> />
yeah, but I'm talking about the horrificness that currently makes the
above work.
I'm asking whether it really needs to be that bad or whether it could be
more sanely implemented.
I guess I should just make a branch and have a play or stfu...
The later is likely to win due to lack of time
*sigh*
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope3-dev
mailing list