Re: django's view.py as class not just methods

2006-08-26 Thread Skink
Rob Wolfe wrote: > > I didn't try it with django but maybe closure is the solution. > Try this: > > > index, detail and download functions can be mapped > in urls.py now. > Rob, thanks a lot. is gonna be good starting point skink -- http://mail.python.org/mailman/listinfo/python-list

Re: django's view.py as class not just methods

2006-08-25 Thread Rob Wolfe
Skink <[EMAIL PROTECTED]> writes: > Hi, > > I'm relatively new to django and maybe my question is stupid, but... > > Is it possible to map in urls.py some url not to function in views.py > (which has first argument with HttpRequest) but to some class method? > In that case each instance of such cl

django's view.py as class not just methods

2006-08-25 Thread Skink
Hi, I'm relatively new to django and maybe my question is stupid, but... Is it possible to map in urls.py some url not to function in views.py (which has first argument with HttpRequest) but to some class method? In that case each instance of such class would be created when session starts and fo