diff -r e94ab812c0c8 -r 185504387370 lib/handler.py --- a/lib/handler.py Sun Feb 08 03:13:11 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -""" - The actual application behaviour, i.e. generating a Response from a Request :) -""" - -class RequestHandler (object) : - """ - A handler handles a Request, returning a Response - """ - - def __init__ (self, func, *args, **kwargs) : - self.func = func - self.args = args - self.kwargs = kwargs - - def handle_request (self, request) : - """ - Handle the request, returning a Response object - - XXX: rename to __call__ kplzthx - """ - - return self.func(request, *self.args, **self.kwargs) - -