[Zope3-dev] path adapters

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Sep 11 10:38:02 EDT 2005


On Friday 02 September 2005 04:20, Jean-Marc Orliaguet wrote:
> this only solution I found was to write:
>
> tal:define="getDisplay nocall:context/displayable/getDisplay;
>                    display python: getDisplay(param);"
>
> But it means that I have to adapt the same object each time, why can't
> the adapted object be a variable?

Path adapters are not designed to support arguments in function calls and 
should be used as follows:

context/displayable:getDisplay

Functions on a path adapter should only rely on the context. Otherwise use a 
view.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list