Re: a bit like permission, but...

2009-08-24 Thread MIL
Exactly. Thats what I need to learn :o) Thanks alot :o) On 21 Aug., 17:25, David Zhou wrote: > On Aug 21, 2009, at 9:54 AM, MIL wrote: > > > this works fine but I dont want to repeat it in all my views: > > def my_profile(request): > >    gotta_go_through = request.user.get_profile > > ().gotta

Re: a bit like permission, but...

2009-08-21 Thread David Zhou
On Aug 21, 2009, at 9:54 AM, MIL wrote: > this works fine but I dont want to repeat it in all my views: > def my_profile(request): > gotta_go_through = request.user.get_profile > ().gotta_go_through_this_url() > if gotta_go_through and gotta_go_through != request.path: >

a bit like permission, but...

2009-08-21 Thread MIL
Hi there. My first django Question here ;) I am trying to make this work: def _user_gotta_go_somewhere(request): gotta_go_through = request.user.get_profile ().gotta_go_through_this_url() if gotta_go_through and gotta_go_through != request.path: return HttpRespons