#6735: Class-based generic views
------------------------------------+---------------------------------------
          Reporter:  jkocherhans    |         Owner:  telenieko
            Status:  assigned       |     Milestone:  1.2      
         Component:  Generic views  |       Version:  SVN      
        Resolution:                 |      Keywords:           
             Stage:  Accepted       |     Has_patch:  1        
        Needs_docs:  1              |   Needs_tests:  0        
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by Nate):

 I've just been poking through the branch on GitHub and it looks great, but
 just in the name of API consistency it looks like the API for the class
 based views does not match the API for
 [http://docs.djangoproject.com/en/dev/ref/contrib/syndication/#a-complex-
 example Syndication Feeds].

 Namely, in a feed, if you want to override (for example) 'title' you can
 either provide a method or a string and the feed will handle either value
 intelligently.

 In the class based views (so far), if you want to override (for example)
 'items' you can either set 'items' or you can override the method
 get_items. This isn't consistent.

 I'm not sure if this is an issue but I thought I'd point it out.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6735#comment:49>
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