[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7914 - trunk/gnue-common/src/utils
From: |
johannes |
Subject: |
[gnue] r7914 - trunk/gnue-common/src/utils |
Date: |
Wed, 28 Sep 2005 12:35:21 -0500 (CDT) |
Author: johannes
Date: 2005-09-19 03:06:13 -0500 (Mon, 19 Sep 2005)
New Revision: 7914
Modified:
trunk/gnue-common/src/utils/CaselessDict.py
Log:
Added the get method
Modified: trunk/gnue-common/src/utils/CaselessDict.py
===================================================================
--- trunk/gnue-common/src/utils/CaselessDict.py 2005-09-16 19:24:29 UTC (rev
7913)
+++ trunk/gnue-common/src/utils/CaselessDict.py 2005-09-19 08:06:13 UTC (rev
7914)
@@ -247,6 +247,15 @@
# ---------------------------------------------------------------------------
+ # Get an item from the dictionary
+ # ---------------------------------------------------------------------------
+
+ def get (self, key, default = None):
+
+ return self._items.get (key.lower (), default)
+
+
+ # ---------------------------------------------------------------------------
# Return the value of a key or a default and remove it
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7914 - trunk/gnue-common/src/utils,
johannes <=