You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/12/05 22:06:23 UTC

[05/10] git commit: [#5475] ticket:493 Use request.cookies.get() instead of [] to prevent test failures

[#5475] ticket:493 Use request.cookies.get() instead of [] to prevent test failures


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/6426ead9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/6426ead9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/6426ead9

Branch: refs/heads/tv/6829
Commit: 6426ead9bae9368971816ee6d7dd718a0fcc3019
Parents: 3ca3e1a
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Nov 25 17:20:18 2013 +0200
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Dec 4 15:35:12 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6426ead9/Allura/allura/lib/widgets/forms.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/forms.py b/Allura/allura/lib/widgets/forms.py
index d99de0f..e656fc0 100644
--- a/Allura/allura/lib/widgets/forms.py
+++ b/Allura/allura/lib/widgets/forms.py
@@ -966,5 +966,5 @@ class CsrfForm(ew.SimpleForm):
     def context_for(self, field):
         ctx = super(CsrfForm, self).context_for(field)
         if field.name == '_session_id':
-            ctx['value'] = tg.request.cookies['_session_id']
+            ctx['value'] = tg.request.cookies.get('_session_id')
         return ctx