[Zope3-checkins] CVS: Zope3/src/zope/i18n/locales -
inheritance.py:1.2
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/i18n/locales
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/i18n/locales
Modified Files:
inheritance.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/i18n/locales/inheritance.py 1.1 => 1.2 ===
--- Zope3/src/zope/i18n/locales/inheritance.py:1.1 Thu Feb 5 17:52:24 2004
+++ Zope3/src/zope/i18n/locales/inheritance.py Fri Mar 5 17:09:26 2004
@@ -89,8 +89,8 @@
def __setattr__(self, name, value):
"""See zope.i18n.interfaces.locales.ILocaleInheritance"""
- if ILocaleInheritance.isImplementedBy(value) and \
- not name.startswith('__'):
+ if (ILocaleInheritance.providedBy(value) and
+ not name.startswith('__')):
value.__parent__ = self
value.__name__ = name
super(AttributeInheritance, self).__setattr__(name, value)
@@ -162,7 +162,7 @@
def __setitem__(self, name, value):
"""See zope.i18n.interfaces.locales.ILocaleInheritance"""
- if ILocaleInheritance.isImplementedBy(value):
+ if ILocaleInheritance.providedBy(value):
value.__parent__ = self
value.__name__ = name
super(InheritingDictionary, self).__setitem__(name, value)
More information about the Zope3-Checkins
mailing list