Hi, 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? -- Encolpe DEGOUTE, Ingénieur 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
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
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. 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".
Ok, I will do it when I will have a little time for it. -- Encolpe DEGOUTE, Ingénieur 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
participants (2)
-
Dieter Maurer -
Encolpe DEGOUTE