Commit 888f1f78 authored by 's avatar

Removed LM headers because Netscape is dumb

parent f6f699fd
"""Image object that is stored in a file"""
__version__='$Revision: 1.3 $'[11:-2]
__version__='$Revision: 1.4 $'[11:-2]
from string import rfind
from Globals import package_home
......@@ -18,12 +18,10 @@ class ImageFile:
self.content_type='image/%s' % path[rfind(path,'.')+1:]
self.__name__=path[rfind(path,'/')+1:]
hmodified=DateTime().toZone('GMT').rfc822()
def index_html(self, RESPONSE):
"""Default document"""
RESPONSE['content-type']=self.content_type
RESPONSE['last-modified']=self.hmodified
f=open(self.path,'rb')
data=f.read()
f.close()
......@@ -33,7 +31,6 @@ class ImageFile:
def HEAD(self, REQUEST, RESPONSE):
""" """
RESPONSE['content-type'] =self.content_type
RESPONSE['last-modified']=self.hmodified
return ''
def __len__(self):
......@@ -42,3 +39,10 @@ class ImageFile:
def __str__(self):
return '<IMG SRC="%s" ALT="%s">' % (self.__name__, self.title_or_id())
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