mrjbq7/tracdocs — pull request #4 by calumchisholm (2012-09-20 12:54:08+00:00)
Title: Trac 1.0 compatibility fixes

My knowledge of Python and the Trac internals are minimal, so these changes represent only what was needed to get required the plugin to start up under Trac 1.0. I can't guarantee that there aren't further compatibility issues lurking in the code.

* Pass the context to the MimeView renderer rather than the request. Appears related to
http://trac.edgewall.org/wiki/TracDev/ContextRefactoring and changeset [10328].
* Use the 'rev' property of revision control nodes rather than '_requested_rev' as per Trac #10208, changeset [10914].
* Added 'Content-Length' header as per [8609].

---

The .gitattributes file is included in the commit only to avoid CR/LF wierdness when committing from Github for Windows. They're the github recommended settings, but feel free to ignore.