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: Forgot the py file Created Nov. 18, 2016, 9:32 a.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') | no next file with comments »
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld