[Zope3-checkins] CVS: Zope3/src/zope/app/utilities - schema.py:1.1.2.15

Sidnei da Silva sidnei at x3ng.com.br
Thu Aug 14 18:50:35 EDT 2003


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

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	schema.py 
Log Message:
Was missing 'attribute' on page adding. Do not provide a None interface. Translation fixes.

=== Zope3/src/zope/app/utilities/schema.py 1.1.2.14 => 1.1.2.15 ===
--- Zope3/src/zope/app/utilities/schema.py:1.1.2.14	Wed Aug 13 18:56:50 2003
+++ Zope3/src/zope/app/utilities/schema.py	Thu Aug 14 17:50:30 2003
@@ -236,7 +236,7 @@
         provided = list(directlyProvidedBy(self))
         schema = self.schema_id and \
                  nameToInterface(self, self.schema_id) or None
-        if not schema in provided:
+        if not schema in provided and schema is not None:
             directlyProvides(self, schema)
         return schema or provided and provided[0] or None
 




More information about the Zope3-Checkins mailing list