as far as I know, decorators only execute the patch while the target
function is running.
On Apr 9, 5:51 pm, "yangmin.li" <yangmin...@gmail.com> wrote:
> Hi
> I am reading the source code of Class Based Generic View with the
> version Djang 1.3
> In django/views/generic/base.py, I can understand most code of the
> Class "View",but not following comments :
> can some one give some detailed explain, an example maybe helpful.
>
> # and possible attributes set by decorators
> # like csrf_exempt from dispatch
> update_wrapper(view, cls.dispatch, assigned=())
> return view
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment