[Zope] ZSQL with REQUEST and named arguments

Dieter Maurer dieter@handshake.de
Wed, 6 Mar 2002 22:39:19 +0100


Ulrich Wisser writes:
 > my ZSQL method has several arguments. Some values will be
 > provided via the REQUEST object and some do I want to
 > hardcode in the method call. REQUEST will have a key 'name'
You want but Z SQL Methods do not support it.

You have two options:

  pass all arguments explicitly as keyword arguments (even the ones from
  REQUEST.

  Put the keyword arguments into REQUEST (with "REQUEST.set(name,value)").


Dieter