From 7a7b2c824ca808c3cd120a0f6d4e8c47d61d6ec9 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 26 Nov 2002 17:19:27 +0000 Subject: [PATCH] Fix loading w/o path. git-svn-id: http://dom-editor.googlecode.com/svn/branches/Gtk2@445 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/Beep.py | 3 +++ Dome/Window.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dome/Beep.py b/Dome/Beep.py index 00b4ba0..934d50e 100644 --- a/Dome/Beep.py +++ b/Dome/Beep.py @@ -1,3 +1,6 @@ class Beep(Exception): def __init__(self, may_record = 0): self.may_record = may_record + + def __str__(self): + return "" diff --git a/Dome/Window.py b/Dome/Window.py index 80b800e..f57e988 100644 --- a/Dome/Window.py +++ b/Dome/Window.py @@ -35,7 +35,7 @@ class Window(rox.Window, saving.Saveable): path = os.path.abspath(path) import Model - if path.endswith('.html'): + if path and path.endswith('.html'): html_path = path path = None else: @@ -185,7 +185,7 @@ class Window(rox.Window, saving.Saveable): print >>stream, to_html.to_html(self.view.root.ownerDocument) def set_uri(self, uri): - if self.savebox.save_radios[0].get_active(): + if self.save_radios[0].get_active(): self.model.uri = uri self.model.root_program.modified = 0 self.update_title() -- 2.11.4.GIT