From ac2c191b38467ba8bda86d44a9c32493e5392f31 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 5 Mar 2002 14:33:27 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: http://dom-editor.googlecode.com/svn/trunk@172 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/View.py | 5 +++++ Dome/Window.py | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dome/View.py b/Dome/View.py index 6375f5b..99f9acc 100644 --- a/Dome/View.py +++ b/Dome/View.py @@ -1233,6 +1233,11 @@ class View: def prog_tree_changed(self, prog): print "here" pass + + def export_all(self): + doc = implementation.createDocument(DOME_NS, 'dome', None) + data = root_program.to_xml() + return doc class StrGrab: data = '' diff --git a/Dome/Window.py b/Dome/Window.py index e71910c..92d7456 100644 --- a/Dome/Window.py +++ b/Dome/Window.py @@ -8,7 +8,6 @@ import __main__ from xml.dom import Node from xml.dom import ext -from xml.dom import implementation from xml.dom.ext.reader import PyExpat from rox import choices @@ -166,8 +165,7 @@ class Window(GtkWindow): elif self.savetype == 'html': doc = node_to_html(self.view.root) elif self.savetype == 'dome': - from View import DOME_NS - doc = implementation.createDocument(DOME_NS, 'dome', None) + doc = self.view.export_all() else: raise Exception('Unknown save type', self.savetype) self.output_data = '' -- 2.11.4.GIT