[Zope] equivalent in python

Dieter Maurer dieter at handshake.de
Thu Jan 8 14:24:45 EST 2004


Mark Nenadov wrote at 2004-1-8 11:52 -0500:
>I'm wondering how to go about doing the following in a Python script:
>
><dtml-call "YourZClass_add(_.None, _, NoRedir=1)">
>
>My main problem is the fact that I'm not sure what _ would translate to
>in Python.

Provided that "YourZClass_add" is still a DTML object
(I think, nowadays they are Python Scripts!),
you can use:

    context.YourZClass_add(context, container.REQUEST, NoRedir=1)

-- 
Dieter



More information about the Zope mailing list