#2070: Large streaming uploads
---------------------------------------------------------------+------------
   Reporter:  [EMAIL PROTECTED]                         |                Owner: 
 axiak         
     Status:  new                                              |            
Component:  Core framework
    Version:  SVN                                              |           
Resolution:                
   Keywords:  streaming, upload, large, sprintsept14, feature  |                
Stage:  Accepted      
  Has_patch:  1                                                |           
Needs_docs:  0             
Needs_tests:  1                                                |   
Needs_better_patch:  0             
---------------------------------------------------------------+------------
Comment (by Faheem Mitha <[EMAIL PROTECTED]>):

 Hi Oyvind,

 Just wondering what problem your most recent patch fixes. I tried using
 newforms and the patch breaks with it. (See traceback below), Does your
 patch fix this problem? I've heard of some problems related to newforms.
 Is this what it is?

                                                     Thanks, Faheem.

 ***********************************************************************
 from models import FileUpload, FolderUpload
 from django.newforms import form_for_model

 FileUploadForm = form_for_model(FileUpload)
 FolderUploadForm = form_for_model(FolderUpload)
 ***********************************************************************

 ***********************************************************************

 Traceback (most recent call last):
 File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py"
 in _real_get_response
   81. response = callback(request, *callback_args, **callback_kwargs)
 File "/usr/local/lib/python2.4/site-
 packages/django/contrib/auth/decorators.py" in _checklogin
   17. return view_func(request, *args, **kwargs)
 File "/usr/local/lib/python2.4/site-packages/bixfile_dev/views.py" in
 file_upload
   23. success = form.save()
 File "/usr/local/lib/python2.4/site-packages/django/newforms/models.py" in
 save
   60. return save_instance(self, model(), fields, fail_message, commit)
 File "/usr/local/lib/python2.4/site-packages/django/newforms/models.py" in
 save_instance
   37. f.save_form_data(instance, cleaned_data[f.name])
 File "/usr/local/lib/python2.4/site-
 packages/django/db/models/fields/__init__.py" in save_form_data
   800. getattr(instance, "save_%s_file" % self.name)(data.filename,
 data.content, save=False)
 File "/usr/local/lib/python2.4/site-
 packages/django/db/models/fields/__init__.py" in
   762. setattr(cls, 'save_%s_file' % self.name, lambda instance, filename,
 raw_field, save=True: instance._save_FIELD_file(self,
 filename, raw_field, save))
 File "/usr/local/lib/python2.4/site-packages/django/db/models/base.py" in
 _save_FIELD_file
   409. if raw_field.has_key('tmpfilename'):

   AttributeError at /proto_dev/bixfile_dev/
   'str' object has no attribute 'has_key'

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