Hi all, in trac-darcs I implemented the get_content_type() of its Node subclass using the guess_type() of the mimetypes package, as an almost obvious counterpart of Subversion's svn:mime-type property.
In this way, the Trac browser is able to properly render say a README.rst[1] using docutils to transform it in HTML, instead of showing its raw format. Is there any drawback in the approach? Should git_fs.py do the same[2]? Thank you, ciao, lele. [1] TBH, that needs a ``mimetypes.add_type('text/x-rst', '.rst')`` somewhere in the code... [2] https://github.com/lelit/trac/commit/0a2c0baba5653a9d3647561fe9133201d28725cc -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+unsubscr...@googlegroups.com. To post to this group, send email to trac-dev@googlegroups.com. Visit this group at http://groups.google.com/group/trac-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.