#13531: django.core.files.File throws an exception on _get_size
------------------------------------+---------------------------------------
          Reporter:  aarond10       |         Owner:  tobias         
            Status:  closed         |     Milestone:                 
         Component:  Uncategorized  |       Version:  1.2-beta       
        Resolution:  invalid        |      Keywords:  File, Exception
             Stage:  Unreviewed     |     Has_patch:  0              
        Needs_docs:  0              |   Needs_tests:  0              
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by tobias):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 The File class is just a wrapper for local file operations and has nothing
 to do with a custom file storage.  file.name /is/ the path, so if you're
 using it for something else, then you're probably using it wrong.  Every
 place that it's used in that class it's assumed to be the path (e.g., see
 the open() method).  If you're trying to do something else, then you may
 need to create your own independent File class and use that in your custom
 !FileStorage instead.

 Closing this as invalid again...

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