Try to set the following in the [mimeviewer] section in trac.ini:

[mimeviewer]
mime_map = text/plain:cpt

Best regards,
Mikael Relbe


> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Wouter Vanden Hove
> Sent: Tuesday, June 15, 2010 10:12 AM
> To: [email protected]
> Subject: [Trac] Text-file rendered as image unwanted
> 
> 
> Hi,
> 
> We are using Trac for Plone/Zope-development, I just noticed 
> that Trac tries to render *.cpt-files ("Controller Page 
> Templates") as images.
> 
> This happens because *.cpt is also the file-extensions for 
> "Corel Photo-Paint Document" 
> http://www.fileinfo.com/extension/cpt
> 
> Is there an easy way to avoid is image-rendering?
> 
> 
> --
> Greets,
> WouterVH
> 
> --
> You received this message because you are subscribed to the 
> Google Groups "Trac Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/trac-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to