[Zope3-checkins] CVS: Zope3/src/zope/schema - fieldproperty.py:1.3
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Apr 24 19:20:51 EDT 2004
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv30969/src/zope/schema
Modified Files:
fieldproperty.py
Log Message:
Cleanup.
=== Zope3/src/zope/schema/fieldproperty.py 1.2 => 1.3 ===
--- Zope3/src/zope/schema/fieldproperty.py:1.2 Wed Dec 25 09:15:20 2002
+++ Zope3/src/zope/schema/fieldproperty.py Sat Apr 24 19:20:49 2004
@@ -11,15 +11,13 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""Computed attributes based on schema fields
+
$Id$
"""
-
-__metaclass__ = type
-
_marker = object()
-class FieldProperty:
+class FieldProperty(object):
"""Computed attributes based on schema fields
Field properties provide default values, data validation and error messages
@@ -27,7 +25,6 @@
Note that FieldProperties cannot be used with slots. They can only
be used for attributes stored in instance dictionaries.
-
"""
def __init__(self, field, name=None):
@@ -57,5 +54,3 @@
def __getattr__(self, name):
return getattr(self.__field, name)
-
-__doc__ = FieldProperty.__doc__ + __doc__
More information about the Zope3-Checkins
mailing list