You're looking for restrictedTraverse: objd = self.restrictedTraverse('/a/b/c/d') Florent Benjamin Buffereau <benjamin.buffereau@enst-bretagne.fr> wrote:
I'd like to write a python function that returns the value of a Zope object whose URL is given as the function argument. Something like:
import Zope, ZPublisher def f(URL): return ZPublisher.Zope(URL)
But this doesn't work (in an external method). Can anybody help me?
Thanks, Benjamin.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com