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



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to