[Zope3-checkins] CVS: ZopeProducts/RotterdamSprint - XmlObjectView.py:1.4

Joachim Werner joe@iuveno-net.de
Wed, 4 Dec 2002 15:43:18 -0500


Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv32140

Modified Files:
	XmlObjectView.py 
Log Message:
Kill Windows line feeds!

=== ZopeProducts/RotterdamSprint/XmlObjectView.py 1.3 => 1.4 ===
--- ZopeProducts/RotterdamSprint/XmlObjectView.py:1.3	Wed Dec  4 05:45:39 2002
+++ ZopeProducts/RotterdamSprint/XmlObjectView.py	Wed Dec  4 15:43:17 2002
@@ -1,21 +1,21 @@
-from Zope.Publisher.Browser.BrowserView import BrowserView
-from Zope.App.OFS.Container.IContainer import IReadContainer
-
-class XmlObjectView(BrowserView):
-    """Provide a user interface for editing a contact"""
-
-    __used_for__ = IReadContainer
-
-    def children(self):
-        """Return an XML document that contains the children of an object."""
-        result = []
-        container = self.context
-        for name in container.keys():
-            item = container[name]
-            if IReadContainer.isImplementedBy(item):
-                result.append('<collection name="%s" length="%s" />' % (name, len(item)))
-            else:
-                result.append('<item name="%s" />' % name)
-        self.request.response.setHeader('Content-Type', 'text/xml')
-        return u'<?xml version="1.0" ?><children> %s </children>' % ' '.join(result)
-
+from Zope.Publisher.Browser.BrowserView import BrowserView
+from Zope.App.OFS.Container.IContainer import IReadContainer
+
+class XmlObjectView(BrowserView):
+    """Provide a user interface for editing a contact"""
+
+    __used_for__ = IReadContainer
+
+    def children(self):
+        """Return an XML document that contains the children of an object."""
+        result = []
+        container = self.context
+        for name in container.keys():
+            item = container[name]
+            if IReadContainer.isImplementedBy(item):
+                result.append('<collection name="%s" length="%s" />' % (name, len(item)))
+            else:
+                result.append('<item name="%s" />' % name)
+        self.request.response.setHeader('Content-Type', 'text/xml')
+        return u'<?xml version="1.0" ?><children> %s </children>' % ' '.join(result)
+