[Zope3-checkins] CVS: Zope3/src/zope/schema - _bootstrapfields.py:1.14
Guido van Rossum
guido@python.org
Tue, 22 Apr 2003 14:02:56 -0400
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv6315/zope/schema
Modified Files:
_bootstrapfields.py
Log Message:
Move ILocalConnectionService to the appropriate place in the
zope.app.interfaces package.
=== Zope3/src/zope/schema/_bootstrapfields.py 1.13 => 1.14 ===
--- Zope3/src/zope/schema/_bootstrapfields.py:1.13 Mon Apr 14 16:02:31 2003
+++ Zope3/src/zope/schema/_bootstrapfields.py Tue Apr 22 14:02:56 2003
@@ -135,7 +135,11 @@
def set(self, object, value):
if self.readonly:
- raise TypeError("Can't set values on read-only fields")
+ raise TypeError("Can't set values on read-only fields "
+ "(name=%s, class=%s.%s)"
+ % (self.__name__,
+ object.__class__.__module__,
+ object.__class__.__name__))
setattr(object, self.__name__, value)
class Container(Field):