#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:  0                             |           Needs_docs:  0          
    
Needs_tests:  0                             |   Needs_better_patch:  0          
    
--------------------------------------------+-------------------------------
Comment (by Simon G. <[EMAIL PROTECTED]>):

 This is also affecting the second tutorial (#3783), so we should try to
 fix this ASAP.
 
 This is a rather ugly bruteforce way of doing it:
 
 {{{
 if hasattr(self.session_data, 'tostring):
    self.session_data = self.session_data.tostring()
 encoded_data = base64.decodestring(self.session_data)
 }}}
 
 but I'll try to dig through MySQLdb tomorrow and see when it decides to
 return an array (it appears to be charset contingent)

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