1 May 16:13
[Trac-dev] Patches I use
From: Ted Gifford <tedfordgif <at> gmail.com>
Subject: [Trac-dev] Patches I use
Newsgroups: gmane.comp.version-control.subversion.trac.devel
Date: 2008-05-01 14:17:16 GMT
Subject: [Trac-dev] Patches I use
Newsgroups: gmane.comp.version-control.subversion.trac.devel
Date: 2008-05-01 14:17:16 GMT
Here's two patches I use that I don't see in trunk. Is it better to
submit them in the tracker?
1. I mentioned this one in trac-users. It redirects to the raw download
for attachments that aren't rendered (wiki probably isn't the best
section of config...)
--- c:\tracdev\trac\trac\attachment.py 2008-04-30 16:50:48.833972400
-0400
+++ C:\Python25\lib\site-packages\trac\attachment.py 2008-04-30
16:53:08.910304400 -0400
@@ -399,6 +399,9 @@
data = self._render_form(req, attachment)
else:
data = self._render_view(req, attachment)
+ if self.env.config.get('wiki','forward_to_raw_href') and
data['preview']['rendered'] is None:
+ req.redirect(data['preview']['raw_href'])
+ return # cancel all template processing
add_stylesheet(req, 'common/css/code.css')
return 'attachment.html', data, None
2. Added data argument to match post_process_request api, and pass None
for post_process requests arguments.
--- c:\tracdev\trac\trac\versioncontrol\api.py 2008-04-30
16:50:43.740287600 -0400
+++ C:\Python25\lib\site-packages\trac\versioncontrol\api.py
(Continue reading)
RSS Feed