Re: Re: [Zope] Mime type for PDB files
Hi Andreas, That's solve my problem. Cheers, Alan On 01/11/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 1. November 2006 04:56:28 + Alan [EMAIL PROTECTED] wrote: Hi List! I have some lines in a ZPT file creating a link to PDB files in a LocalFS folder: span tal:repeat=item python: options.get('pdbsw','null') trtd a tal:attributes=href python: container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python: item+'.pdb'get file/a /tdtd /span It works fine expect for one thing. When clicking at the link, my browser (Safari), thinks my PDB file has mime type text. Is it possible to define the mime type (chemical/x-pdb) for my linked files in Zope? For 'File' instances you can set the 'content_type' property within the ZMI. -aj -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Mime type for PDB files
Hi List! I have some lines in a ZPT file creating a link to PDB files in a LocalFS folder: span tal:repeat=item python: options.get('pdbsw','null') trtd a tal:attributes=href python: container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python: item+'.pdb'get file/a /tdtd /span It works fine expect for one thing. When clicking at the link, my browser (Safari), thinks my PDB file has mime type text. Is it possible to define the mime type (chemical/x-pdb) for my linked files in Zope? I would thank any attention in advance. Regards, Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Mime type for PDB files
--On 1. November 2006 04:56:28 + Alan [EMAIL PROTECTED] wrote: Hi List! I have some lines in a ZPT file creating a link to PDB files in a LocalFS folder: span tal:repeat=item python: options.get('pdbsw','null') trtd a tal:attributes=href python: container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python: item+'.pdb'get file/a /tdtd /span It works fine expect for one thing. When clicking at the link, my browser (Safari), thinks my PDB file has mime type text. Is it possible to define the mime type (chemical/x-pdb) for my linked files in Zope? For 'File' instances you can set the 'content_type' property within the ZMI. -aj pgpUKGN51QZfE.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )