[ZPT] How to getId() of pt from a Script (Python)

Chris Withers chris at simplistix.co.uk
Tue Oct 4 13:03:52 EDT 2005



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
            - http://www.simplistix.co.uk


More information about the ZPT mailing list