Hello all, 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. Thanks in advance. ~Mark
Well... I found the solution. If anyone has this problem, just go to the binding tab for the Python Script and put "_" under Namespace. ~Mark On Thu, 2004-01-08 at 11:52, Mark Nenadov wrote:
Hello all,
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.
Thanks in advance.
~Mark
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
participants (2)
-
Dieter Maurer -
Mark Nenadov