Hi Christian,

sorry for not answering so long - I just tried and it works perfect
with the patch!

I'm deeply impressed of your quick and competent response on this
list! Thanks!

Frohe Ostern,

Fabian


> >> The file extension is superseded by the mime-type, by design.
>
> > If I have to patch trac to ignore text/plain, do you have a hint?
>
> Something like this (untested), svn_fs.py being in trac/versioncontrol
>
> Index: svn_fs.py
> ===================================================================
> --- svn_fs.py    (revision 5152)
> +++ svn_fs.py    (working copy)
> @@ -783,7 +783,10 @@
>      def get_content_type(self):
>          if self.isdir:
>              return None
> -        return self._get_prop(core.SVN_PROP_MIME_TYPE)
> +        mimetype = self._get_prop(core.SVN_PROP_MIME_TYPE)
> +        if mimetype != 'text/plain':
> +            return mimetype
> +        return None
>
>      def get_last_modified(self):
>          _date = fs.revision_prop(self.fs_ptr, self.created_rev,


--~--~---------~--~----~------------~-------~--~----~
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