Jean-Marc Orliaguet wrote:
Stephan Richter wrote:
On Sunday 11 September 2005 11:32, Jean-Marc Orliaguet wrote:
it there any technical reason why:
could not return the adapted object based on the context instead of
triggering a traversal error?
Yes. You are not using the path adapter syntax as far as I can see. You need
to have: object/path_adapter_name:function
You should check the parsing implementation (probably some traversing code) to
see about the assumptions.
I know that, I was about to file this as a bug, or write a proposal to let
return the adapted object, but I found a workaround, by adding:
You both are off on the path adapter syntax. The syntax allows
the attribute name to be ommitted. You can write:
(note the trailing colon)
to get just the adapter. Note that the syntax:
This syntax is kinda silly, as pointed out in:
Unfortunately, because we could never agree on an alternate syntax, we're stuck
with the current syntax, at least for now.
Jim Fulton mailto:[EMAIL PROTECTED] Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
Zope3-dev mailing list