[Zope3-checkins] CVS: Zope3/src/zope/app/contentdirective - contentdirective.py:1.5

Jim Fulton jim@zope.com
Tue, 21 Jan 2003 16:35:53 -0500


Update of /cvs-repository/Zope3/src/zope/app/contentdirective
In directory cvs.zope.org:/tmp/cvs-serv12330

Modified Files:
	contentdirective.py 
Log Message:
Changed set_schema to omit readonly attributes

=== Zope3/src/zope/app/contentdirective/contentdirective.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/contentdirective/contentdirective.py:1.4	Fri Jan 10 09:06:27 2003
+++ Zope3/src/zope/app/contentdirective/contentdirective.py	Tue Jan 21 16:35:22 2003
@@ -157,7 +157,7 @@
         schema = self.__context.resolve(schema)
         for name in schema:
             field = schema[name]
-            if IField.isImplementedBy(field):
+            if IField.isImplementedBy(field) and not field.readonly:
                 r.append((
                     ('protectSetAttribute', self.__class, name),
                     protectSetAttribute, (self.__class, name, permission_id)))