I'm using version 0.31.  Unfortunately I haven't checked if this
changes in 0.32.

I was wondering if there was any reason why arguments pulled from the
URL pattern weren't passed to handlers that are callable.  Basically,
in applications.py, the code around line 386 is:

elif hasattr(f, '__call__'):
      return f()

But the piece that calls a verb (i.e. GET) from a class-handler passes
in *args with:

return tocall(*args)

Anyway, I was thinking that it could be changed to something like:

elif hasattr(f, '__call__'):
     return f(*(args or ()))

So that the callable handlers have access to this data.  I can provide
a patch, but that one line is all there is to it.

Thanks, Ian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to