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

Martijn Faassen m.faassen@vet.uu.nl
Wed, 9 Apr 2003 05:46:48 -0400


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

Modified Files:
	field.py 
Log Message:
Make XML field a subclass of Bytes field. 


=== Zope3/src/zope/app/xml/field.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/xml/field.py:1.1	Wed Apr  9 05:31:52 2003
+++ Zope3/src/zope/app/xml/field.py	Wed Apr  9 05:46:47 2003
@@ -16,16 +16,14 @@
 """
 from zope.app.interfaces.xml.field import IXML
 from zope.schema.interfaces import ValidationError
-from zope.schema import Field
+from zope.schema import Bytes
 from xml.parsers.expat import ParserCreate, ExpatError
 
 NotWellFormedXML = u"NotWellFormedXML"
 
-class XML(Field):
+class XML(Bytes):
+    
     __implements__ = IXML
-
-    # by default XML text is actually in a byte encoding
-    _type = str
 
     def _validate(self, value):
         super(XML, self)._validate(value)