[Zope] Calling Page Template with Dictionaries

Paul Winkler pw_lists@slinkp.com
Tue, 22 Jul 2003 22:47:33 -0400


On Tue, Jul 22, 2003 at 06:48:57PM -0700, Roy Rapoport wrote:
> What I'm hoping to find out, though, is whether I could call a ZPT with a
> dictionary.
> My initial effort:
> PS:
> d = {}
> d['arg'] = 'bar'
> return context['page_template'](d)

Untested, but I think the answer here is a standard python idiom:

return context['page_template'](**d)

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's NINJA POLY BUTTER CHURN!
(random hero from isometric.spaceninja.com)