This is expected behavior. All parameters are converted to method call
parameters. As a result, you get something that is defined like this:

def myfunc(self, parm1, parm2):
    pass

being called like this (when extra parameters are present):

controller.myfunc(parm1, parm2, parm3)

Naturally, Python gets upset about this. The fix, though, is simple. Change
the definition of myfunc so it looks like this:

def myfunc(self, parm1, parm2, *p, **kw):
    pass

Any extra positional parameters will be passed in the list that is p, and
extra keyword arguments will be passed in the dict that is kw. Your app will
now be happy :)

-- 
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to