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

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

Issue 29362580: Issue 4641 - Append performance fix to trac cgi file (Closed)
Patch Set: Issue 4641 - Performance fix to trac cgi file Created Nov. 17, 2016, 9:43 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.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/trac/files/trac_performance_fix.py
@@ -0,0 +1,8 @@
+from trac.web.session import Session
+orig_get = Session.get
+def patched_get(self, key, default=None):
+ if key == 'accesskeys':
+ return '1'
+ return orig_get(self, key, default)
+Session.get = patched_get
+
« 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