How to the caller page within a Python script
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. kind regards, Vitor Varalonga
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
participants (2)
-
Maik Jablonski -
Vitor Varalonga