Re: [Zope3-dev] path adapters

2005-09-12 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: Jean-Marc Orliaguet wrote: Stephan Richter wrote: On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote: it there any technical reason why: tal:define="displayable nocall:context/displayable" could not return the adapted object

Re: [Zope3-dev] path adapters

2005-09-12 Thread Jean-Marc Orliaguet
Jim Fulton wrote: > Jean-Marc Orliaguet wrote: > >> Stephan Richter wrote: >> >> >>> On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote: >>> >>> >>> it there any technical reason why: tal:define="displayable nocall:context/displayable" could not return the adapt

Re: [Zope3-dev] path adapters

2005-09-12 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Stephan Richter wrote: On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote: it there any technical reason why: tal:define="displayable nocall:context/displayable" could not return the adapted object based on the context instead of triggering a travers

Re: [Zope3-dev] path adapters

2005-09-11 Thread Jean-Marc Orliaguet
Stephan Richter wrote: >On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote: > > >>it there any technical reason why: >> >> tal:define="displayable nocall:context/displayable" >> >>could not return the adapted object based on the context instead of >>triggering a traversal error? >>

Re: [Zope3-dev] path adapters

2005-09-11 Thread Stephan Richter
On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote: > it there any technical reason why: > >    tal:define="displayable nocall:context/displayable" > > could not return the adapted object based on the context instead of > triggering a traversal error? Yes. You are not using the path adap

Re: [Zope3-dev] path adapters

2005-09-11 Thread Jean-Marc Orliaguet
Stephan Richter wrote: >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

Re: [Zope3-dev] path adapters

2005-09-11 Thread Stephan Richter
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 ca