José Henrique wrote:
Use "print template.getId()".
2005/10/4, Chris Miles <[EMAIL PROTECTED]>:
I have a Page Template in a folder: folder1/mypage.pt
containing:
Testing
myscript is a Script (Python) containing:
print context.getId()
return printed
Now, when folder1/mypage.pt is called TTW
Chris Miles wrote:
How do I get the Script (Python) to fetch the id of the Page Template it
was called from?
_.getitem('template').getId() and make sure you've bound _ to the
namespace using the Bindings tab.
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
Use "print template.getId()".
2005/10/4, Chris Miles <[EMAIL PROTECTED]>:
> I have a Page Template in a folder: folder1/mypage.pt
> containing:
> Testing
>
> myscript is a Script (Python) containing:
> print context.getId()
> return printed
>
> Now, when folder1/mypage.pt is called TTW, it d