[Zope3-checkins] CVS: Zope3/src/zope/app/utilities - content.py:1.10 mutableschemafield.py:1.4 session.py:1.10

Jim Fulton jim at zope.com
Fri Mar 5 17:09:53 EST 2004


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

Modified Files:
	content.py mutableschemafield.py session.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/utilities/content.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/utilities/content.py:1.9	Wed Mar  3 05:38:56 2004
+++ Zope3/src/zope/app/utilities/content.py	Fri Mar  5 17:09:21 2004
@@ -135,7 +135,7 @@
             # Check whether the service really exists locally; if not, create
             # one for this service manager
             if (service is None or
-                not ILocalBrowserMenuService.isImplementedBy(service) or
+                not ILocalBrowserMenuService.providedBy(service) or
                 not zapi.name(service) in default):
 
                 service = self._createMenuService()
@@ -143,7 +143,7 @@
             # Check whether the menu exists locally; if not create one.
             menu = service.queryInheritedMenu(self.menuId, True)
             if (menu is None or
-                not ILocalBrowserMenu.isImplementedBy(menu) or
+                not ILocalBrowserMenu.providedBy(menu) or
                 not zapi.name(menu) in default):
 
                 menu = self._createMenu()
@@ -151,12 +151,12 @@
         else:
             # Find a browser menu service and make sure it is a local one.
             service = zapi.getService(self, BrowserMenu)
-            if not ILocalBrowserMenuService.isImplementedBy(service):
+            if not ILocalBrowserMenuService.providedBy(service):
                 raise ComponentLookupError, \
                       _('No local/peristent Browser Menu Service found.')
             # Find the browser menu and make sure it is a local one
             menu = service.queryInheritedMenu(self.menuId, True)
-            if menu is None or not ILocalBrowserMenu.isImplementedBy(menu):
+            if menu is None or not ILocalBrowserMenu.providedBy(menu):
                 error = _('No local Browser Menu called "${name}" found.')
                 error.mapping = {'name': self.menuId}
                 raise ComponentLookupError, error


=== Zope3/src/zope/app/utilities/mutableschemafield.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/utilities/mutableschemafield.py:1.3	Sun Aug 17 02:08:33 2003
+++ Zope3/src/zope/app/utilities/mutableschemafield.py	Fri Mar  5 17:09:21 2004
@@ -46,7 +46,7 @@
         if basetype is None:
             basetype = IMutableSchema
 
-        if not IInterface.isImplementedBy(value):
+        if not IInterface.providedBy(value):
             raise ValidationError("Not an interface", value)
 
         if basetype in providedBy(value):
@@ -79,7 +79,7 @@
             basetype = IMutableSchema
 
         for v in value:
-            if not IInterface.isImplementedBy(v):
+            if not IInterface.providedBy(v):
                 raise ValidationError("Not an interface", v)
 
         for v in value:


=== Zope3/src/zope/app/utilities/session.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/utilities/session.py:1.9	Wed Mar  3 05:38:56 2004
+++ Zope3/src/zope/app/utilities/session.py	Fri Mar  5 17:09:21 2004
@@ -204,7 +204,7 @@
     '''
     if session_data_container is None:
         dc = zapi.getUtility(context, ISessionDataContainer, product_id)
-    elif ISessionDataContainer.isImplementedBy(session_data_container):
+    elif ISessionDataContainer.providedBy(session_data_container):
         dc = session_data_container
     else:
         dc = zapi.getUtility(




More information about the Zope3-Checkins mailing list