Fabian Wein (LSE) wrote:
> Hi Christian,
>
> sorry for not answering so long - I just tried and it works perfect
> with the patch!
> ...
>> 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,
>>     

Thanks for the kind feedback!
But just to make it clear: this patch makes Trac *to ignore* the 
'text/plain' settings, which is not something you'd normally want to do. 
That was just a hack for addressing Fabian's particular needs.

-- Christian

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