2009/5/20 Brian Neal <bgn...@gmail.com>

>
> On May 20, 8:33 am, Filip Gruszczyński <grusz...@gmail.com> wrote:
> > I was wondering: have you considered using some callable objects to
> > serve requests in views.py instead of functions?
>
> Sure, check out this blog post (not the only example):
>
>
> http://www.screeley.com/entries/2009/apr/01/class-based-views-and-reusable-apps/
>
> It's a useful technique, I think.
> >
>
One thing to keep in mind is that the object is shared across all requests
in that process, so you can't actually store state on your object.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to