[Zope] Use of Client.py

Dieter Maurer dieter@handshake.de
Wed, 28 May 2003 23:03:24 +0200


Encolpe DEGOUTE wrote at 2003-5-27 17:49 +0200:
 > i had got a problem today with lib/python/ZPublisher/Client.py.
 > When it takes a file in the MultiPart function, it look only at the
 > _extmap dictionary to calculate the mime-type. 
 > This one is small and there is no method to force the mime-type in that
 > one is not in _extmap.
 > Today i have just add 'application/zip', but i don't think it's the
 > right way to do this.
 > What do you think of this?

I think the "Client" authors wanted client to be independent of 
Zope.

If this is not a requirement for you, I would use the same
content type detection that is used for "OFS.Image.File".


Dieter