[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/container - __init__.py:1.3

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


Update of /cvs-repository/Zope3/src/zope/app/interfaces/container
In directory cvs.zope.org:/tmp/cvs-serv32541/src/zope/app/interfaces/container

Modified Files:
	__init__.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/app/interfaces/container/__init__.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/container/__init__.py:1.2	Wed Dec 25 09:12:58 2002
+++ Zope3/src/zope/app/interfaces/container/__init__.py	Thu Dec 26 15:20:49 2002
@@ -4,6 +4,7 @@
 
 from zope.interface import Interface, Attribute
 from zope.component.interfaces import IView
+from zope.interface.common.mapping import IItemMapping
 from zope.interface.common.mapping import IReadMapping, IEnumerableMapping
 
 class DuplicateIDError(KeyError):
@@ -26,13 +27,9 @@
                 "to %(container)s%(message)s" % self.__dict__)
 
 
-class IItemContainer(Interface):
-
-    def __getitem__(key):
-        """Return the content for the given key.
-
-        Raises KeyError if the content can't be found.
-        """
+class IItemContainer(IItemMapping):
+    """Minimal readable container
+    """
 
 class ISimpleReadContainer(IItemContainer, IReadMapping):
     """Readable content containers