[Zope] context,container,getParentNode()
Holger Hoffmann
hohoff@rz.uni-potsdam.de
Thu, 23 Aug 2001 12:06:05 +0200
Hi Horst,
Horst Wald wrote:
>
> Hi!
>
> I never really understood the difference between context and container. Now
> please don't write "look it up in the documentation", because that's what
> I've been doing for the last days.
container is the folder the script is defined in.
context is the object that the script is called on.
> What I'm trying to do is write a python-script that returns the
> parent-folder of the folder from where it has been called. Neither
>
> return context.getParentNode() nor return container.getParentNode() seem to
> work.
what went wrong ? It works for me.
... Holger