[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - location.py:1.2

Jim Fulton jim at zope.com
Sun Sep 21 13:32:25 EDT 2003


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

Added Files:
	location.py 
Log Message:
New interfaces to model location.


=== Zope3/src/zope/app/interfaces/location.py 1.1 => 1.2 ===
--- /dev/null	Sun Sep 21 13:32:25 2003
+++ Zope3/src/zope/app/interfaces/location.py	Sun Sep 21 13:32:25 2003
@@ -0,0 +1,33 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Location framework
+
+$Id$
+"""
+
+from zope.interface import Interface, Attribute
+from zope import schema
+
+class ILocation(Interface):
+    """Objects that have a structural location
+    """
+
+    __parent__ = Attribute("The parent in the location hierarchy")
+
+    __name__ = schema.TextLine(
+        __doc__=
+        """The name within the parent
+
+        The parent can be traversed with this name to get the object.
+        """)




More information about the Zope3-Checkins mailing list