Re: [Zope-dev] form variables and **kw

2002-10-04 Thread Florent Guillaume
Oliver Bleutgen <[EMAIL PROTECTED]> wrote: > def return_vars(self, var=None, **kw): >return "var: %s, kw: %s" % (var,kw) > > > Is it correct that any passed form variable besides "var" will get lost, > i.e. that ZPublisher will _not_ marshall the other variables into the > method call? V

Re: [Zope-dev] form variables and **kw

2002-10-02 Thread Steve Alexander
> If so, why? I see that Toby and you answered that. > Is this a python limitation? No. > I played around with > co_varnames and python doesn't seem to offer a possibility to recognize > **kw as something special. >>> def foo(bar, **kw): ... pass ... >>> foo.func_code.co_flags 11 >>

Re: [Zope-dev] form variables and **kw

2002-10-02 Thread Oliver Bleutgen
Toby Dickenson wrote: > On Wednesday 02 Oct 2002 9:31 am, Oliver Bleutgen wrote: > >>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 > headers? cookies? environment variabl

Re: [Zope-dev] form variables and **kw

2002-10-02 Thread Toby Dickenson
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=None, **kw): >return "var: %s, kw: %s" % (var,kw) > > > Is it correct that any passed f

[Zope-dev] form variables and **kw

2002-10-02 Thread Oliver Bleutgen
Reposting to zope-dev because no answers on the zope list. 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=None, **kw): return "var: %s, kw: %s" % (var,kw) Is it correct that any passed form variable