[Zope] Wrong <base href=""> for .HTM file in LocalFS

Jonothan Farr jfarr@real.com
Thu, 26 Apr 2001 14:19:49 -0700


Thanks for tracking this down, Loren. I'll be sure this gets into the next
release.
--jfarr

----- Original Message -----
From: "Loren Stafford" <lstafford@morphics.com>
To: "Jonothan Farr" <jfarr@speakeasy.org>
Cc: <zope@zope.org>; "Evan Simpson" <evan@digicool.com>; "Dieter Maurer"
<dieter@handshake.de>
Sent: Thursday, April 26, 2001 2:05 PM
Subject: RE: [Zope] Wrong <base href=""> for .HTM file in LocalFS


> I can't believe that no one encountered this before.
>
> LocalFS simply was not making case-insensitive lookups into its file type
> table.
>
> I fixed it by making the following change to LocalFS.py
>
> WAS:
>
> def _get_content_type(ext, _type_map):
>     try: return _type_map[ext]
>     except KeyError: return (None, None)
>
> CHANGED TO:
>
> def _get_content_type(ext, _type_map):
>     try: return _type_map[string.lower(ext)]
>     except KeyError: return (None, None)
>
> Thanks, Evan and Dieter, for your tips.
>
> -- Loren
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>