[Zope-dev] form variables and **kw
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 2 Oct 2002 09:50:25 +0100
On Wednesday 02 Oct 2002 9:31 am, Oliver Bleutgen wrote:
> Hi all, I have some questions.
> Say I have a external method/product method return_vars which I call
> from a form:
>
> def return_vars(self, var=3DNone, **kw):
> return "var: %s, kw: %s" % (var,kw)
>
>
> Is it correct that any passed form variable besides "var" will get lost=
,
It wont be copied into kw.
> i.e. that ZPublisher will _not_ marshall the other variables into the
> method call?
Would you really want all of them? All those that come from query string?=
http=20
headers? cookies? environment variables?
You can get sane access to all of these through the REQUEST parameter. Im=
sure=20
you know that.
> Where does this marshalling happen, in ZPublisher/mapply.py?
yes