[Zope] Calling Scripts with arguments from ZPT and XML-RPC

Dieter Maurer dieter at handshake.de
Wed Sep 24 20:58:51 EDT 2003


darkness wrote at 2003-9-23 20:22 -0400:
 > ...
 > I'm aware I can declare MyScript to take no arguments and just access them
 > as context.REQUEST.theArg, but then MyScript isn't very useful if you try
 > to use it via XML-RPC.

You may try:

    Parameters for "MyScript":  param1=None, param2=None, ...
    Code for "MyScript":

      r= container.REQUEST
      if param1 is None: param1= r['param1']
      if param2 is None: param2= r['param2']
      ...



Dieter



More information about the Zope mailing list