changeset 94:08992651df1f

add a serialize method to BaseWriter class (raises NotImplementedError)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 23 Dec 2012 19:03:42 +0100
parents 78da04e67e9e
children 5413661e5765
files emeraldtree/tree.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/tree.py	Sun Dec 23 19:02:48 2012 +0100
+++ b/emeraldtree/tree.py	Sun Dec 23 19:03:42 2012 +0100
@@ -1255,6 +1255,9 @@
     def serialize_document_start(self, write):
         pass
 
+    def serialize(self, write, elem, qnames, namespaces={}):
+        raise NotImplementedError
+
     def write(self, write, element, document=False):
         qnames, namespaces = self._namespaces(element)