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 _______________________________________________ Zope3-dev mailing list [email protected] Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
