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:
yeah, but I'm talking about the horrificness that currently makes the
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
Simplistix - Content Management, Zope & Python Consulting
Zope3-dev mailing list