[Zope3-checkins] CVS: Zope3/src/zope/security/examples - sandbox.py:1.7 sandbox_security.py:1.10

Jim Fulton jim at zope.com
Fri Mar 5 17:10:06 EST 2004


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

Modified Files:
	sandbox.py sandbox_security.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/security/examples/sandbox.py 1.6 => 1.7 ===
--- Zope3/src/zope/security/examples/sandbox.py:1.6	Fri Feb 20 15:39:07 2004
+++ Zope3/src/zope/security/examples/sandbox.py	Fri Mar  5 17:09:33 2004
@@ -138,7 +138,7 @@
 
     def addAgent(self, agent):
         if not self._agents.has_key(agent.getId()) \
-           and IAgent.isImplementedBy(agent):
+           and IAgent.providedBy(agent):
             self._agents[agent.getId()]=agent
             agent.setHome(self)
         else:
@@ -147,7 +147,7 @@
     def addService(self, service):
 
         if not self._services.has_key(service.getId()) \
-           and IService.isImplementedBy(service):
+           and IService.providedBy(service):
             self._services[service.getId()]=service
             service.setHome(self)
         else:
@@ -156,7 +156,7 @@
     def transportAgent(self, agent, destination):
         if self._agents.has_key(agent.getId()) \
             and destination is not self \
-            and ISandbox.isImplementedBy(destination):
+            and ISandbox.providedBy(destination):
             destination.addAgent(agent)
             del self._agents[agent.getId()]
         else:


=== Zope3/src/zope/security/examples/sandbox_security.py 1.9 => 1.10 ===
--- Zope3/src/zope/security/examples/sandbox_security.py:1.9	Fri Feb 20 15:39:07 2004
+++ Zope3/src/zope/security/examples/sandbox_security.py	Fri Mar  5 17:09:33 2004
@@ -148,7 +148,7 @@
 
     def addAgent(self, agent):
         if not self._agents.has_key(agent.getId()) \
-           and sandbox.IAgent.isImplementedBy(agent):
+           and sandbox.IAgent.providedBy(agent):
             self._agents[agent.getId()]=agent
             agentChecker = checker.selectChecker(self)
             wrapped_home = agentChecker.proxy(self)




More information about the Zope3-Checkins mailing list