[Zope3-checkins] CVS: zopeproducts/xml/dom - adapters.py:1.2 configure.zcml:1.2

Philipp von Weitershausen philikon@philikon.de
Mon, 23 Jun 2003 01:02:26 -0400


Update of /cvs-repository/zopeproducts/xml/dom
In directory cvs.zope.org:/tmp/cvs-serv30449

Modified Files:
	adapters.py configure.zcml 
Log Message:
Renamed DocumentToXMLTextAdapter to NodeToXMLTextAdapter and updated
configuration accordingly.


=== zopeproducts/xml/dom/adapters.py 1.1 => 1.2 ===
--- zopeproducts/xml/dom/adapters.py:1.1	Sun Jun 22 20:17:35 2003
+++ zopeproducts/xml/dom/adapters.py	Mon Jun 23 01:02:26 2003
@@ -23,13 +23,13 @@
 from zope.app.interfaces.xml.source import IXMLText
 
 import expatbuilder
-from zopeproducts.xml.interfaces.dom.core import IDocument
+from zopeproducts.xml.interfaces.dom.core import INode, IDocument
 from printer import Printer
 
-class DocumentToXMLTextAdapter:
+class NodeToXMLTextAdapter:
 
     implements(IXMLText)
-    __used_for__ = IDocument
+    __used_for__ = INode
 
     def __init__(self, context):
         self.context = context


=== zopeproducts/xml/dom/configure.zcml 1.1 => 1.2 ===
--- zopeproducts/xml/dom/configure.zcml:1.1	Sun Jun 22 20:17:35 2003
+++ zopeproducts/xml/dom/configure.zcml	Mon Jun 23 01:02:26 2003
@@ -4,9 +4,9 @@
 
 <!-- register DOM document to XML text adapter-->
 <adapter
-  factory=".adapters.DocumentToXMLTextAdapter"
+  factory=".adapters.NodeToXMLTextAdapter"
   provides="zope.app.interfaces.xml.source.IXMLText"
-  for="zopeproducts.xml.interfaces.dom.core.IDocument" />
+  for="zopeproducts.xml.interfaces.dom.core.INode" />
 
 <!-- register XMLtext to DOM document adapter-->
 <adapter