Update of /cvsroot/happydoc/HappyDoc3/happydoclib
In directory sc8-pr-cvs1:/tmp/cvs-serv29226/happydoclib
Modified Files:
appclass.py
Log Message:
Do not depend on the user to remember to include (or omit) . in (from)
the extension.
Index: appclass.py
===================================================================
RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/appclass.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** appclass.py 18 Jan 2003 14:35:24 -0000 1.10
--- appclass.py 18 Jan 2003 16:02:49 -0000 1.11
***************
*** 136,140 ****
def addMimetype(self, extension, mimetypeSpec):
! mimetypes.types_map['.%s' % extension] = mimetypeSpec
return
--- 136,145 ----
def addMimetype(self, extension, mimetypeSpec):
! if extension and extension[0] != '.':
! key = '.%s' % extension
! else:
! key = extension
!
! mimetypes.types_map[key] = mimetypeSpec
return
|