Thank you , guys ~
Your help are really good for me ~

On Dec 1, 11:23 pm, Jon Loyens <[EMAIL PROTECTED]> wrote:
> Another +1 for decorators.  In fact, the example David S uses
> authentication and logins as an example of what he wants to do and its
> already handled as a decorator thus giving him a decent pattern to
> follow.  David S, I'd suggest you look up the @login_required
> decorator and even look through the Django code to see how it's
> implemented.  Don't be afraid of cruising through the code.  As good
> as the documentation is, the code is also well organized and uses a
> lot of good pythonic idioms if you're new to the language.
>
> Jon.
>
> On Dec 1, 6:49 am, martyn <[EMAIL PROTECTED]> wrote:
>
> > David,
>
> > +1 for decorator.
> > That let you use it or not in each view.
>
> > On Dec 1, 9:30 am, David Shieh <[EMAIL PROTECTED]> wrote:
>
> > > Thanks , David Zhou , I will find some information for decorator
> > > And also , I will surf for middleware .
>
> > > Thank you very much , Malcolm.
>
> > > On Dec 1, 3:55 pm, "David Zhou" <[EMAIL PROTECTED]> wrote:
>
> > > > On Mon, Dec 1, 2008 at 2:23 AM, David Shieh <[EMAIL PROTECTED]> wrote:
> > > > > I dont' know whether this make any sense .
> > > > > Right now , I can't test it , but if django won't initiate the
> > > > > views.py as a class , this method will make no sense.
>
> > > > Why not write a decorator?
>
> > > > ---
> > > > David Zhou
> > > > [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to