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

Sidnei da Silva sidnei@x3ng.com.br
Tue, 20 May 2003 15:43:29 -0400


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

Modified Files:
	component.py 
Log Message:
More work on DAV support. Got it mostly working, but I cannot commit before writing tests :) Also, added OPTIONS view, and whitespace cleanup here and there.

=== Zope3/src/zope/app/interfaces/component.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/component.py:1.2	Tue May 20 11:46:39 2003
+++ Zope3/src/zope/app/interfaces/component.py	Tue May 20 15:43:28 2003
@@ -79,6 +79,21 @@
         The id is the URI for the namespace.
         """
 
+    def availableNamespaces():
+        """Returns a list of available namespaces we know about"""
+
+    def getNamespace(interface):
+        """Find what namespace is associated with an interface.
+
+        A ComponentLookupError is raised if the interface is not found.
+        """
+
+    def queryNamespace(interface, default=None):
+        """Find what namespace is associated with an interface.
+
+        The default value is returned if the interface is not found.
+        """
+
 class IInterfaceField(IEnumerated, IField):
     u"""A type of Field that has an Interfaces as its value."""