[Zope] Use of Client.py

Encolpe DEGOUTE edegoute@nuxeo.com
Fri, 30 May 2003 16:58:24 +0200


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

> 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.=20
>  > 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?
>=20
> I think the "Client" authors wanted client to be independent of=20
> Zope.
>=20
> If this is not a requirement for you, I would use the same
> content type detection that is used for "OFS.Image.File".

Ok, I will do it when I will have a little time for it.

--=20
Encolpe DEGOUTE, Ing=E9nieur Logiciel, Nuxeo SARL: Zope Service Provider.
Mail: edegoute@nuxeo.com - Tel: +33 (0)1 40 33 79 18
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source