[Zope-CMF] Re: buidling skin namespaces with folders
gerry at faithonline.com
Mon Dec 8 08:57:17 EST 2003
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?
Janko Hauser wrote:
>>When you use your controller in this way:
>>then the controller can save its parent and ensure (by acquisition
>>rebindung) that the template is called with the correct object
> 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,
More information about the Zope-CMF