E5XML/XMLStreamWriterBase.py

changeset 610
3a625b0793d8
parent 605
9c7527ecbf6e
child 791
9ec2ac20e54e
--- a/E5XML/XMLStreamWriterBase.py	Mon Sep 13 16:14:10 2010 +0200
+++ b/E5XML/XMLStreamWriterBase.py	Mon Sep 13 19:52:30 2010 +0200
@@ -50,6 +50,17 @@
         # write the XML header
         self.writeStartDocument()
     
+    def writeBasics(self, tag, pyobject):
+        """
+        Public method to write a tag with a basic Python object dump.
+        
+        @param tag tag name (string)
+        @param pyobject object to be dumped
+        """
+        self.writeStartElement(tag)
+        self._writeBasics(pyobject)
+        self.writeEndElement()
+    
     def _writeBasics(self, pyobject):
         """
         Protected method to dump an object of a basic Python type.

eric ide

mercurial