[Zope] Getting the object from a path in a python script
Florent Guillaume
fg@nuxeo.com
21 Aug 2001 20:27:41 GMT
> I am trying to get hold of an object in a fs python script. The only thing I
> have to reference this object is the absolute url for the object. I have
> tried with restrictedTraverse and self.restrictedTraverse but keeps getting
> an error.
What did you try ? What errors did you get ?
You should use something like:
obj = self.restrictedTraverse('/the/path/to/obj')
Note that the path doesn't have the "http://server.com" part.
Florent Guillaume
Nuxeo