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
   # ---------------------------------------------------------------------------
 



_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to