Commit 4d9e9896 authored by Jim Fulton's avatar Jim Fulton

fing binary files on windoze!

parent a502bd46
"""Image object that is stored in a file""" """Image object that is stored in a file"""
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
from string import rfind from string import rfind
from Globals import package_home from Globals import package_home
...@@ -20,7 +20,7 @@ class ImageFile: ...@@ -20,7 +20,7 @@ class ImageFile:
def index_html(self, RESPONSE): def index_html(self, RESPONSE):
"""Default document""" """Default document"""
RESPONSE['content-type']=self.content_type RESPONSE['content-type']=self.content_type
f=open(self.path) f=open(self.path,'rb')
data=f.read() data=f.read()
f.close() f.close()
return data return data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment