[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/xml - field.py:1.3

Martijn Faassen m.faassen@vet.uu.nl
Thu, 10 Apr 2003 05:05:44 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/xml
In directory cvs.zope.org:/tmp/cvs-serv16658/zope/app/interfaces/xml

Modified Files:
	field.py 
Log Message:
Added a knob to XML field to turn off wellformedness parsing. This can
then be used to optimize cases where we do XML parsing anyway.


=== Zope3/src/zope/app/interfaces/xml/field.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/xml/field.py:1.2	Wed Apr  9 05:46:47 2003
+++ Zope3/src/zope/app/interfaces/xml/field.py	Thu Apr 10 05:05:12 2003
@@ -17,9 +17,15 @@
 $Id$
 """
 from zope.schema.interfaces import IBytes
+from zope.schema import Bool
 
 class IXML(IBytes):
     u"""A field that can store XML text.
     """
+
+    check_wellformedness = Bool(
+        title=u"Check for wellformedness",
+        default=True)
+