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

Steve Alexander steve@cat-box.net
Tue, 3 Jun 2003 11:47:52 -0400


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

Modified Files:
	field.py 
Log Message:
new style implements()


=== Zope3/src/zope/app/xml/field.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/xml/field.py:1.3	Thu Apr 10 05:05:13 2003
+++ Zope3/src/zope/app/xml/field.py	Tue Jun  3 11:47:51 2003
@@ -19,15 +19,15 @@
 from zope.schema import Bytes
 from zope.schema.fieldproperty import FieldProperty
 from xml.parsers.expat import ParserCreate, ExpatError
+from zope.interface import implements
 
 NotWellFormedXML = u"NotWellFormedXML"
 
 class XML(Bytes):
-    
-    __implements__ = IXML
+    implements(IXML)
 
     check_wellformedness = FieldProperty(IXML['check_wellformedness'])
-    
+
     def _validate(self, value):
         super(XML, self)._validate(value)
         if not self.check_wellformedness:
@@ -37,4 +37,3 @@
             parser.Parse(value, True)
         except ExpatError, e:
             raise ValidationError(NotWellFormedXML)
-