[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - component.py:1.2
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 20 May 2003 11:47:10 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20937/src/zope/app/interfaces
Modified Files:
component.py
Log Message:
Brand new DAVSchema service.
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Namespace2SchemaRegistry
=== Zope3/src/zope/app/interfaces/component.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/interfaces/component.py:1.1 Tue May 13 13:08:34 2003
+++ Zope3/src/zope/app/interfaces/component.py Tue May 20 11:46:39 2003
@@ -44,17 +44,14 @@
If base is given, only interfaces that equal or extend base
will be returned.
-
"""
def searchInterfaceIds(search_string='', base=None):
"""Return the ids of the interfaces that match the search criteria.
See searchInterface
-
"""
-
class IGlobalInterfaceService(IInterfaceService):
"""Global registry for Interface
"""
@@ -66,7 +63,20 @@
If the id is false, the id will be computed from the interface
module and name.
+ """
+
+class IDAVSchemaService(IInterfaceService):
+ """Service that keeps tracks of namespace to interfaces mapping"""
+ pass
+
+class IGlobalDAVSchemaService(IDAVSchemaService):
+ """Global registry from DAV namespaces to interfaces
+ """
+
+ def provideInterface(id, interface):
+ """Register an interface with a given id
+ The id is the URI for the namespace.
"""
class IInterfaceField(IEnumerated, IField):