Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/trac/files/trac_performance_fix.snippet

Issue 29362580: Issue 4641 - Append performance fix to trac cgi file (Closed)
Patch Set: Issue 4641 - Performance fix to trac cgi file Created Nov. 16, 2016, 4:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/trac/manifests/init.pp » ('j') | modules/trac/manifests/init.pp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/files/trac_performance_fix.snippet
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/trac/files/trac_performance_fix.snippet
@@ -0,0 +1,9 @@
+### local modifications to the trac.fcgi file v1
+from trac.web.session import session
+orig_get = session.get
+def patched_get(self, key, default=none):
mathias 2016/11/17 07:43:31 Typo: "None" vs. "none". Also, I guess it should b
f.nicolaisen 2016/11/17 08:23:46 I don't know. This snippet was directly copied fro
mathias 2016/11/17 10:18:33 Well, I guess somewhere in the process the snippet
f.nicolaisen 2016/11/17 10:54:31 Wtf... OK, good thing you spotted this! I must've
+ if key == 'accesskeys':
+ return '1'
+ return orig_get(self, key, default)
+session.get = patched_get
+### end of local modifications
« no previous file with comments | « no previous file | modules/trac/manifests/init.pp » ('j') | modules/trac/manifests/init.pp » ('J')

Powered by Google App Engine
This is Rietveld