docs/main/Development.rst | 7 +++++++ moksha/middleware/csrf.py | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-)
New commits: commit 54c7ea708d66be5921981602a4473c92e6a064f7 Merge: 12c873a... 7f8d228... Author: Luke Macken lmacken@redhat.com Date: Tue Mar 17 17:59:18 2009 -0400
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/moksha
commit 12c873a25f777dfd861de367896a7a05d535adf7 Author: Luke Macken lmacken@redhat.com Date: Tue Mar 17 17:58:57 2009 -0400
Add instructions for freezing our requirements using pip
diff --git a/docs/main/Development.rst b/docs/main/Development.rst index f17f0d6..cf44b36 100644 --- a/docs/main/Development.rst +++ b/docs/main/Development.rst @@ -38,6 +38,13 @@ Running the test suite
$ nosetests
+Freezing requirements +--------------------- + +.. code-block:: bash + + $ ./pip.py -E tg2env freeze production/stable-reqs.txt + Profiling the WSGI stack ------------------------
commit 71f3241a278278e3c7c8d62617a1de6e433f91a3 Author: Luke Macken lmacken@redhat.com Date: Tue Mar 17 17:54:55 2009 -0400
Display the invalid session cookie
diff --git a/moksha/middleware/csrf.py b/moksha/middleware/csrf.py index af59cda..cf3c943 100644 --- a/moksha/middleware/csrf.py +++ b/moksha/middleware/csrf.py @@ -132,6 +132,8 @@ class CSRFProtectionMiddleware(object): log.debug("%s in POST" % self.csrf_token_id) csrf_token = request.POST[self.csrf_token_id] del(request.POST[self.csrf_token_id]) + from pprint import pprint + pprint(environ)
token = environ.get('repoze.who.identity', {}).get(self.csrf_token_id)
@@ -217,4 +219,4 @@ class CSRFMetadataProvider(object): if request.path == self.login_handler: environ['CSRF_AUTH_STATE'] = True else: - log.warning("Invalid session cookie, not setting CSRF token!") + log.warning("Invalid session cookie %r, not setting CSRF token!" %session_id)
moksha-commits@lists.fedorahosted.org