#11353: use sphinx autodoc directives on geodjango application
------------------------------------+---------------------------------------
          Reporter:  yml            |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  1.0   
        Resolution:                 |      Keywords:  patch 
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by Tobu):

 This is the descriptor protocol, documented at
 http://docs.python.org/reference/datamodel.html#descriptors .

 The bug in the current implementation is that it only works on instance
 access, and not class access.

 This is easy to fix, add this to the beginning of the __get__ method:

 {{{
         if obj is None:
             # Accessed on a class, not an instance
             return self
 }}}

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