[Zope3-checkins] CVS: Zope3/src/zope/app/xml - w3cschemalocations.py:1.5
Philipp von Weitershausen
philikon@philikon.de
Fri, 20 Jun 2003 09:59:38 -0400
Update of /cvs-repository/Zope3/src/zope/app/xml
In directory cvs.zope.org:/tmp/cvs-serv2726
Modified Files:
w3cschemalocations.py
Log Message:
Removed unnecessary method setInstanceInterfaces. Rather, use
directlyProvides directly.
=== Zope3/src/zope/app/xml/w3cschemalocations.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/xml/w3cschemalocations.py:1.4 Wed Apr 30 16:13:23 2003
+++ Zope3/src/zope/app/xml/w3cschemalocations.py Fri Jun 20 09:59:38 2003
@@ -27,7 +27,7 @@
"""
schema_uris = getW3CXMLSchemaLocations(xmltext.source)
schema_interfaces = getInterfacesForXMLSchemaLocations(schema_uris)
- setInstanceInterfaces(xmltext, schema_interfaces)
+ directlyProvides(xmltext, *schema_interfaces)
def getInterfacesForXMLSchemaLocations(schema_uris):
"""
@@ -39,9 +39,6 @@
if interface is not None:
result.append(interface)
return result
-
-def setInstanceInterfaces(ob, interfaces):
- directlyProvides(ob, *interfaces)
def getW3CXMLSchemaLocations(xml):
"""Give list of URIs of the schema an XML document promises to implement.