Ignore:
Timestamp:
23 Jul 2011, 02:37:45 (13 years ago)
Author:
uli
Message:

For views get the file contents and not the data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/image/browser/views.py

    r5926 r6534  
    4747        if content_type is not None:
    4848            self.response.setHeader('Content-Type', content_type)
    49         return self.context.data
     49        fd = self.context.file
     50        contents = fd.read()
     51        fd.close()
     52        return contents
Note: See TracChangeset for help on using the changeset viewer.