#14512: Documentation & tools for decorating class-based-views.
---------------------------------------+-----------------------------------
               Reporter:  lrekucki     |          Owner:  lrekucki
                   Type:  New feature  |         Status:  reopened
              Milestone:  1.4          |      Component:  Generic views
                Version:  SVN          |       Severity:  Normal
             Resolution:               |       Keywords:  class-based-views
           Triage Stage:  Accepted     |      Has patch:  1
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+-----------------------------------

Comment (by ptone):

 In an effort to keep momentum on this issue, I was highlighting this
 approach in #django-dev

 There was the desire to try to keep a simple unified approach to function-
 based and class-based views decoration

 Accepting the assumption that you are only talking about decorating views
 - the following alternative approach was suggested by Jacob:
 https://gist.github.com/1219822

 This removes the need for the double call ()() syntax in Python < 2.6

 There were some subsequent comments that this would perhaps better live
 outside contrib.auth as some sort of general view utility.

 https://gist.github.com/1219822

 Would be good to see brief pro/con consideration of these two approaches -
 keeping as accepted, but if this stalls, will need to unfortunately move
 to DDN, at which point I will try to summarize for list.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/14512#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to