Skip to content

Instantly share code, notes, and snippets.

View jzylks's full-sized avatar

Jason Zylks jzylks

  • Texas A&M University
  • Waco, TX
View GitHub Profile
@jzylks
jzylks / middleware.py
Last active December 11, 2015 04:49 — forked from pmclanahan/middleware.py
Updating for Django 1.4
from types import MethodType
from django.http import SimpleCookie, HttpRequest
def _set_cookie(self, key, value='', max_age=None, expires=None, path='/',
domain=None, secure=False):
self._resp_cookies[key] = value
self.COOKIES[key] = value
if max_age is not None:
@jzylks
jzylks / gist:5014310
Created February 22, 2013 15:44 — forked from dodok1/gist:4692296
diff --git a/atlassian-jira/WEB-INF/classes/jpm.xml b/atlassian-jira/WEB-INF/classes/jpm.xml
--- a/atlassian-jira/WEB-INF/classes/jpm.xml
+++ b/atlassian-jira/WEB-INF/classes/jpm.xml
@@ -246,7 +246,7 @@
<default-value>false</default-value>
<type>boolean</type>
<admin-editable>false</admin-editable>
- <sysadmin-editable>false</sysadmin-editable>
+ <sysadmin-editable>true</sysadmin-editable>
</property>