[ZPT] calling ZPT from Python Script

Olivier Laurent oli@aragne.com
Tue, 11 Jun 2002 11:45:05 +0200


On lun, 10 jun 2002, Dieter Maurer wrote:
> You can use Python's build in function "apply" to turn a dictionary
> into a sequence of keyword arguments.
> 
> You probably want this, too, when you call "content_html".
> 
> Looks like:
> 
>       apply(content.content_html,(client,mapping),kwargs)

Thanks very much. It works.

-- 
Olivier Laurent.
P3B    : Club Python(-Zope) Belge --------- http://www.p3b.org
OS3B   : Club Open-Software(-Linux) Carolo  http://www.os3b.org 
Aragne : Python-Zope Solutions & Formations http://www.aragne.com