[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration - __init__.py:1.16

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


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

Modified Files:
	__init__.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/browser/services/registration/__init__.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/browser/services/registration/__init__.py:1.15	Wed Mar  3 05:38:36 2004
+++ Zope3/src/zope/app/browser/services/registration/__init__.py	Fri Mar  5 17:08:56 2004
@@ -244,7 +244,7 @@
         # Render as a link to the component
         field = self.context
         context = field.context
-        if IRegistration.isImplementedBy(context):
+        if IRegistration.providedBy(context):
             # It's a registration object. Just get the corresponding attr
             path = getattr(context, field.__name__)
             # The path may be relative; then interpret relative to ../..
@@ -274,7 +274,7 @@
         """See zope.app.interfaces.form.IWidget"""
         field = self.context
         context = field.context
-        if IRegistration.isImplementedBy(context):
+        if IRegistration.providedBy(context):
             # It's a registration object. Just get the corresponding attr
             path = getattr(context, field.getName())
         else:




More information about the Zope3-Checkins mailing list