#5883: CursorDebugWrapper should implement __iter__
-----------------------+----------------------------------------------------
Reporter:  eibaan      |       Owner:  nobody          
  Status:  new         |   Component:  Database wrapper
 Version:  SVN         |    Keywords:                  
   Stage:  Unreviewed  |   Has_patch:  0               
-----------------------+----------------------------------------------------
 According to PEP 249, a database cursor can be iterable. The
 CursorDebugWrapper however cannot correctly delegate this. To fix this, a
 method
 {{{
 def __iter__(self):
     return iter(self.cursor)
 }}}
 added to that class enables support for cursor iteration if DEBUG is
 enabled. This method should be added to {{{django/db/backends/utils.py}}}.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5883>
Django Code <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