#4165: Upload Progress Middleware and Integration into the Admin
---------------------------------------------+------------------------------
   Reporter:  Michael Axiak <[EMAIL PROTECTED]>  |                Owner:  
nobody                
     Status:  new                            |            Component:  Admin 
interface       
    Version:  SVN                            |           Resolution:            
            
   Keywords:  upload, progress, ajax         |                Stage:  Design 
decision needed
  Has_patch:  1                              |           Needs_docs:  1         
            
Needs_tests:  1                              |   Needs_better_patch:  1         
            
---------------------------------------------+------------------------------
Comment (by Faheem Mitha <[EMAIL PROTECTED]>):

 I got the progress bar patch to work. There are two changes with respect
 to the previous patch.

 1) (Minor): Added missing django/contrib/uploadprogress/__init__.py.
 Note that diff ignores empty files, which may explain why this keeps going
 missing.

 2) For some reason, the pickled object corresponding to self.progress.text
 in _get_dict in the FileProgress class in models.py is unicode, when it
 should of course be str. So pickle refuses to unpickle, and wackiness
 ensues. Well, no progress bar, anyway.

 A workaround is to do

 pickle.loads(str(self.progress_text))

 as reflected in the patch. This isn't very satisfactory, however, so I'm
 hoping someone can tell me what is the problem here and how to fix it. I
 was hoping that the recent unicode related fix would take care of this,
 but apparently not.
                                                           Faheem.

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