[Zope3-checkins] CVS: Zope3/src/zope/interface/common - mapping.py:1.3

Jim Fulton jim@zope.com
Thu, 26 Dec 2002 15:20:50 -0500


Update of /cvs-repository/Zope3/src/zope/interface/common
In directory cvs.zope.org:/tmp/cvs-serv32541/src/zope/interface/common

Modified Files:
	mapping.py 
Log Message:
Added the rotterdam skin. The way cool new UI done (well, started)
at the Rotterdam sprinathon.

Modified the skin to reflect the grand renaming.

Also refactored the skins and standard mapping interfaces so we no
longer need IStandardMacros just to say that standard macros have a
__getitem__ method. 



=== Zope3/src/zope/interface/common/mapping.py 1.2 => 1.3 ===
--- Zope3/src/zope/interface/common/mapping.py:1.2	Wed Dec 25 09:15:11 2002
+++ Zope3/src/zope/interface/common/mapping.py	Thu Dec 26 15:20:49 2002
@@ -17,8 +17,8 @@
 
 from zope.interface import Interface
 
-class IReadMapping(Interface):
-    """Basic mapping interface
+class IItemMapping(Interface):
+    """Simplest readable mapping object
     """
 
     def __getitem__(key):
@@ -26,6 +26,10 @@
 
         A KeyError is raised if there is no value for the key.
         """
+
+class IReadMapping(IItemMapping):
+    """Basic mapping interface
+    """
 
     def get(key, default=None):
         """Get a value for a key