Am Mon, 2002-08-05 um 14.12 schrieb Andrew Kuchling: > On Fri, Aug 02, 2002 at 12:52:20PM +0200, Andreas Kostyrka wrote: > >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? > > Zope's HTTPRequest had a feature something like this, where something > like fieldname:int would automatically convert the field to integer. > We ripped it out because the argument parsing code added a lot of > complexity that we never used. (See rev. 1.17 of http_request.py, > which discarded about 400 lines of code.) Well, I have only written code that isolates the arguments out of a callable object. (And it works with more cases than the Zope one, ...) I'd guess that adding a function that applies a dictionary (request) to a callable object would be about 100 lines of code. Anyone interested? If not, is it possible to structure the request code so, that there is an apply method, which can be overridden? Andreas