[Zope] Re: How to the caller page within a Python script

Maik Jablonski maik.jablonski@uni-bielefeld.de
Sun, 13 Oct 2002 14:15:59 +0200


Vitor Varalonga wrote:
>     Hi!
>  
> 
>     I have several DTML documents that call the same python script.
>     How can I know inside this Python script which was the document
> that called it?
>     Sorry for the beginners' question.

context.REQUEST.PUBLISHED

will give you the (web)-published object.

context.REQUEST.PUBLISHED.getId()

will give you the id of the object and so on...

cheers, maik

-- 
Maik Jablonski                 __o
www.zfl.uni-bielefeld.de     _ \<_    Deutsche Zope User Group
Bielefeld, Germany          (_)/(_)               www.dzug.org