[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - adding.py:1.45 contents.py:1.35

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


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

Modified Files:
	adding.py contents.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/browser/container/adding.py 1.44 => 1.45 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.44	Wed Mar  3 05:38:33 2004
+++ Zope3/src/zope/app/browser/container/adding.py	Fri Mar  5 17:08:53 2004
@@ -51,7 +51,7 @@
         name = self.contentName
         chooser = zapi.getAdapter(container, INameChooser)
 
-        if IContainerNamesContainer.isImplementedBy(container):
+        if IContainerNamesContainer.providedBy(container):
             # The container pick's it's own names.
             # We need to ask it to pick one.
             name = chooser.chooseName(self.contentName or '', content)
@@ -93,7 +93,7 @@
                                              context=self.request)
         add_button_label = translation.translate(add_button_label,
                                              context=self.request)
-        if IContainerNamesContainer.isImplementedBy(container):
+        if IContainerNamesContainer.providedBy(container):
             return " <input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
                    % add_button_value
         else:
@@ -173,7 +173,7 @@
         self.request.response.redirect(self.nextURL())
 
     def namesAccepted(self):
-        return not IContainerNamesContainer.isImplementedBy(self.context)
+        return not IContainerNamesContainer.providedBy(self.context)
 
 class Adding(BasicAdding):
 


=== Zope3/src/zope/app/browser/container/contents.py 1.34 => 1.35 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.34	Wed Mar  3 06:03:57 2004
+++ Zope3/src/zope/app/browser/container/contents.py	Fri Mar  5 17:08:53 2004
@@ -117,7 +117,8 @@
         self.supportsCopy = info
         self.supportsPaste = self.pasteable()
         self.supportsRename = (
-            self.supportsCut and not IContainerNamesContainer.isImplementedBy(self.context)
+            self.supportsCut and
+            not IContainerNamesContainer.providedBy(self.context)
             )
 
         return info
@@ -205,7 +206,7 @@
 
     def addObject(self):
         request = self.request
-        if IContainerNamesContainer.isImplementedBy(self.context):
+        if IContainerNamesContainer.providedBy(self.context):
             new = ""
         else:
             new = request["new_value"]




More information about the Zope3-Checkins mailing list