[Zope] ZPublisher and func(self,*args,**kw)
Michel Pelletier
michel@digicool.com
Sat, 9 Dec 2000 11:35:06 -0800 (PST)
On Sat, 9 Dec 2000, Andreas Jung wrote:
> Inside a product I tried to replace the following function
>
> def myfunc(self,arg1='',arg2='',REQUEST=None):
>
> by
>
> def myfunc(self,*args,**kw):
>
> to get a more generic interface. However in every case "args" and "kw" are
> empty when I output their contents inside the function. Bug or feature ?
Zope will only match up arguments from a request with your function
arguments when you are specific. It won't just shove everything it can
into *args or **kw.
-Michel