durusmail: quixote-users: calling arguments
calling arguments
2002-08-05
2002-08-05
2002-08-05
2002-08-05
2002-08-06
2002-08-06
2002-08-06
calling arguments
Andreas Kostyrka
2002-08-02
Hi!

I've been wondering why Quixote leaves out argument processing and calls
all objects just with request?
Is this a deliberate design choice? Or was it just left out because
nobody wrote the code?
(Actually I've been toying around, and have already written a function
 that introspects the parameters of all kinds of callable objects. At
 least the ones I thought about. :) )

The current way seems to force to write much code that is often
repeated:
def method(self,request):
        a=request.form.get("a","DEFAULT")
        b=request.form.get("b","B")
        ...
instead of:
def method(self,request,a="DEFAULT",b="B"):
        ...


Andreas



reply