#2335: In some cases MySQLdb returns array.array which causes an error in
a2b_base64()
--------------------------------------------+-------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian         
     Status:  reopened                      |            Component:  Admin 
interface
    Version:  SVN                           |           Resolution:             
    
   Keywords:  a2b_base64()                  |                Stage:  Accepted   
    
  Has_patch:  1                             |           Needs_docs:  0          
    
Needs_tests:  1                             |   Needs_better_patch:  0          
    
--------------------------------------------+-------------------------------
Changes (by [EMAIL PROTECTED]):

  * has_patch:  0 => 1
  * needs_tests:  0 => 1

Comment:

 {{{
 Index: models.py
 ===================================================================
 --- models.py   (revision 4734)
 +++ models.py   (working copy)
 @@ -58,7 +58,7 @@
          verbose_name_plural = _('sessions')
 
      def get_decoded(self):
 -        encoded_data = base64.decodestring(self.session_data)
 +        encoded_data = base64.decodestring(self.session_data.tostring())
          pickled, tamper_check = encoded_data[:-32], encoded_data[-32:]
          if md5.new(pickled + settings.SECRET_KEY).hexdigest() !=
 tamper_check:
              from django.core.exceptions import SuspiciousOperation
 }}}
 
 Sorry, but I'am not found anything for send path.

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