#14512: Documentation & tools for decorating class-based-views.
------------------------------------+---------------------------------------
          Reporter:  lrekucki       |         Owner:  lrekucki         
            Status:  new            |     Milestone:  1.3              
         Component:  Generic views  |       Version:  SVN              
        Resolution:                 |      Keywords:  class-based-views
             Stage:  Accepted       |     Has_patch:  1                
        Needs_docs:  0              |   Needs_tests:  0                
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by russellm):

 Hrm... I'm not wild about this implementation. `subclass=False` is a messy
 implementation detail that is hard to explain -- even the provided
 documentation does a Jedi Mind Track "don't do that"....

 After some discussions on IRC, it seems like there may not be a clean way
 to handle this. I'm open to suggestions, but if the option is between a
 messy and brittle implementation of class decorators, and a mildly awkward
 but fundamentally predictable method decorator based solution, I'd rather
 go with the latter.

 The docs in this patch are a good starting point for explaining how to do
 decoration in other ways; unless someone can propose a good way to
 implement class decorators, I'll close this ticket in favor of just
 documenting the alternatives.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14512#comment:6>
Django <http://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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to