durusmail: quixote-users: why pass request object to public functions / methods
why pass request object to public functions / methods
why pass request object to public functions / methods
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-03
2005-01-05
2005-01-03
2005-01-03
why pass request object to public functions / methods
Oleg Broytmann
2005-01-03
On Mon, Jan 03, 2005 at 03:25:26PM +0300, Oleg Broytmann wrote:
> @published
> def myfunc(request):
>    process(request)

   Even better - call it "with_request" instead of "published", and
combine it with a real "published" decorator that had been being
discussed a week ago:

@published @with_request
def myfunc(request):
   ...

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

reply