Roger Ineichen wrote:
>Hi Jean Marc
>"Regions and their lookup are a concept on the ZPT level,
> implementations like CPSSkin or viewlets use this ZPT API"
>Let's say a region defines a area in a page template. This area
>will lookup 'html fragment' and render them within the page template.
>For the lookup of 'html fragment' in a region we need a component
>how knows about to collect such 'html fragment'.
>Can you agree if I say the region is defined in the page template
>and the lookup component is registred as a adapter for:
>(context, request, view, region)
>This would make it possible to register lookup mechanism depending
>on the objects context, the view we are browsing and the region we are
>Can you agree if I say that this concept is a base concept of the
>page template and only used from CPSSkin and viewlets instead
>that CPSSkin and viewlet define their own lookup concept.
>CPSSkin or viewlet will ues this API for interact in the right way
>in a ZPT.
OK, I see. The think is that CPSSkins does not use zope page templates
at all for rendering the page, but page templates can be used as sources
of input, whatever lookup mechanism you choose will do, since the
context, request, view, ... variables will be passed during the rendering.
Zope3-dev mailing list