[z3-five] can't import an interface into a page template

Tim Hicks tim at sitefusion.co.uk
Wed Nov 17 12:25:42 MET 2004


Lennart Regebro said:
> Tim Hicks wrote:
>> I wonder if I'm going about this the write way?  Essentially I'm trying
>> to
>> get my standard zope2 zpt to behave like a 'view' I think - i.e. calling
>> logic code.  This has hack written all over it, but I don't know how
>> else
>> to ease interfaces/adapters into an archetypes environment.
>>
>> Any pointers much appreciated.
>
> Well, the "right" way to do it is of course to use browser:page
> commands. The problem with that being that then you can't call the
> templates in portal_skins.

If I understand this thread properly
<http://codespeak.net/pipermail/z3-five/2004q4/000251.html>, the problem
is that zope2 and zope3 page templates do not talk to each other nicely. 
I can see that is a problem, but actually not too killer for me because
I'm happily using zope2 zpts.

Could we write some code to mimic a a portal_skins folder that exposes
zope2  zpts that have been declared using the browser:page commands?

Or maybe I misunderstand the problem...

> I think it could be interesting to maybe have a brainstorming session on
> irc with interested parties to see if we can find any ways of solving
> this major CMF integration hurdle. Any takers?

I'm afraid I'm not on (and have never used) IRC.  I'm certainly interested
in what you discuss though.


tim


More information about the z3-five mailing list