Hello !
I finally choose to create a decorator to implement this
functionality. I wanted something more generic than a wrapper in my
urls.py. The solution seems to work fine for me, and if anybody want
to do the same, the code is at
http://www.djangosnippets.org/snippets/753/
Of course, any sugg
On May 4, 5:42 am, "Guillaume Lederrey" <[EMAIL PROTECTED]>
wrote:
> I havent done any functional programming in a long time , but ... isnt
> there a way to use an anonymous function (if that's what it is called)
> and do the wrapper "inline" ? Something like :
Yeah, something like that would wor
2008/5/2 Nathaniel Whiteinge <[EMAIL PROTECTED]>:
>
> On May 1, 10:04 am, "Guillaume Lederrey"
>
> <[EMAIL PROTECTED]> wrote:
> > This of course doesnt work because the request isnt in the scope. I
> > could redefine a view in my views.py and do the work on the request
> > manually, but i have
On May 1, 10:04 am, "Guillaume Lederrey"
<[EMAIL PROTECTED]> wrote:
> This of course doesnt work because the request isnt in the scope. I
> could redefine a view in my views.py and do the work on the request
> manually, but i have a feeling there is a solution to do that directly
> in my urls.py.
Hello !
I am trying to use the update_object generic view in
http://www.djangosnippets.org/snippets/635/
I am using it directly in my urls.py like this :
url(r'^(?P\d+)/edit/$',
permission_required('change_news')(update_object),
{
'model' : News,
'mo
5 matches
Mail list logo