[Zope-CMF] Re: buidling skin namespaces with folders

Gerry Kirk gerry at faithonline.com
Mon Dec 8 08:57:17 EST 2003


Janko,

Can you explain this approach? I'm not totally understanding, but I'd 
like to be able to categorize skins. Is this what you are doing here?

Gerry

Janko Hauser wrote:
>>
>>When you use your controller in this way:
>>
>>     <URL_to_object>/Controller/<path_to_template>
>>
>>then the controller can save its parent and ensure (by acquisition
>>rebindung) that the template is called with the correct object
>>as "here".
>>
> 
> Found this way, by remembering old DTML-tricks.
> 
>         obj = getattr(view.aq_parent, obj.getId())
>         view = getattr(obj, view.getId())
>         result = view(view=pagecontext)
> 
> just for illustration, as I must now differentiate in the parent
> lookup between DirectoryViews and normal objects. This won't be
> needed, if the controller is given an explizit path.
> 
> Thanks again,
> 
> __Janko
> 




More information about the Zope-CMF mailing list