You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/10/19 00:32:13 UTC

[1/10] git commit: [#5145] Support has_key / in for CaseInsensitiveDict

Updated Branches:
  refs/heads/cj/5145 [created] 7c77d13bd


[#5145] Support has_key / in for CaseInsensitiveDict

Signed-off-by: Cory Johns <jo...@geek.net>


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

Branch: refs/heads/cj/5145
Commit: 7c77d13bd598effb18ede7bf0e1a968d5d9092cd
Parents: c0b3a32
Author: Cory Johns <jo...@geek.net>
Authored: Thu Oct 18 20:36:53 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Thu Oct 18 20:36:53 2012 +0000

----------------------------------------------------------------------
 Allura/allura/lib/utils.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7c77d13b/Allura/allura/lib/utils.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py
index 2fb0390..c1b9f8c 100644
--- a/Allura/allura/lib/utils.py
+++ b/Allura/allura/lib/utils.py
@@ -373,6 +373,9 @@ class CaseInsensitiveDict(dict):
     def __delitem__(self, name):
         super(CaseInsensitiveDict, self).__delitem__(name.lower())
 
+    def __contains__(self, name):
+        return super(CaseInsensitiveDict, self).__contains__(name.lower())
+
     def pop(self, k, *args):
         return super(CaseInsensitiveDict, self).pop(k.lower(), *args)