[Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS

Evan Simpson evan@4-am.com
Tue, 14 Nov 2000 19:50:30 -0500


From: "Dieter Maurer" <dieter@handshake.de>
>  > The only information about your caller that you can get
is
>  > the contents of their namespace.  So, in the final
release,
>  > you would be able to bind the caller's namespace to "_"
and
>  > write _.this().id.  That requires a change to Zope,
though,
>  > so it doesn't work yet.  You *could* work around this
by
>  > explicitly passing the namespace (or this(), for that
>  > matter).
> Why can't I get the acquisition context as with External
Methods?
> (if they are called directly via the Web, namespaces are
not
> yet build and the acquisition context obtained via a
"self"
> parameter is everything I have).

I don't understand.  If the method is called directly via
the Web, "context" *is* your acquisition context, and there
is no caller to get information about.

Cheers,

Evan @ digicool & 4-am