[z3-five] Z2/Z3 skin integration, or, views and portal_skins.
Lennart Regebro
regebro at nuxeo.com
Wed Nov 10 16:56:38 MET 2004
I had an idea, ad did some testing on this today.
Since the ZPT syntax is the same, it would be possible to make Zope3
templates out of the templates in portal_skins. My first testing was to
set a Z3 computed attribute on the skins, and then call the skin with
use-macro="here/main_template/Z3/macros/master" instead of
use-macro="here/main_template/macros/master". Lo and behold, it worked!
Now of course, any use-macro call in main_templates master macro, would
fail. So what is needed is that this is done for all the filebased skins
in portal-skins, and of course, in some nice cached way.
I can't figure out a good way to do that, so this may be a dead end, but
I thought I should throw out the idea anyway, maybe it sparks some
secondary ideas.
I also tried, vainly, to create a Zope2 pagetemplate that was viewed as
protected code, and therefore would solve yesterdays rightsproblem, but
I failed. If that was possible, that would also be one way forward for
this integration.
//Lennart
More information about the z3-five
mailing list