2 Mar
2005
2 Mar
'05
9:51 a.m.
David Pratt wrote:
Hi. I am able to capture the content from a page template in a Script Python like this:
template_html = context.some_folder.folder_contents()
But I have a page template that I am wanting to capture output from that requires parameters passed - normally like this after the template name ?id=test_id
Too keep this working identically, you would do: context.REQUEST.set('id','test_id') template_html = context.some_folder.folder_contents() or, you could do: template_html = context.some_folder.folder_contents(id='test_id') ...if you change occurances such as request/id to request/id|options/id cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk