[Zope3-checkins] CVS: Zope3/src/zope/schema - accessors.py:1.7
Gary Poster
gary at zope.com
Tue Jan 20 14:45:38 EST 2004
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv12180
Modified Files:
accessors.py
Log Message:
Fix get accessor so that it implements both the field declaration and its own declaration (including IMethod). Small tests.
=== Zope3/src/zope/schema/accessors.py 1.6 => 1.7 ===
--- Zope3/src/zope/schema/accessors.py:1.6 Tue Nov 4 22:08:11 2003
+++ Zope3/src/zope/schema/accessors.py Tue Jan 20 14:45:07 2004
@@ -35,7 +35,7 @@
$Id$
"""
-from zope.interface import providedBy
+from zope.interface import providedBy, implementedBy
from zope.interface.interface import Method
@@ -48,7 +48,7 @@
# fields properties to provide meta data.
def __provides__(self):
- return providedBy(self.field)
+ return providedBy(self.field) + implementedBy(FieldReadAccessor)
__provides__ = property(__provides__)
def __init__(self, field):
More information about the Zope3-Checkins
mailing list