From 8e90f4764d5afa02f7d4bd310787167575c274b6 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 2 Mar 2008 23:32:01 +0000 Subject: [PATCH] 0001878: bug: AttributeError: BookReportDialog instance has no attribute 'has_attribute' svn: r10173 --- ChangeLog | 5 +++++ src/ManagedWindow.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a2703b92..4f0a83cd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-02 Brian Matherly + * src/ManagedWindow.py: + 0001878: bug: AttributeError: BookReportDialog instance has no + attribute 'has_attribute' + 2008-03-02 Brian Matherly * src/plugins/BookReport.py: * src/Utils.py diff --git a/src/ManagedWindow.py b/src/ManagedWindow.py index 703d8f40f..4994f3680 100644 --- a/src/ManagedWindow.py +++ b/src/ManagedWindow.py @@ -466,7 +466,8 @@ class ManagedWindow: if self.isWindow : self.present(self) else : - assert self.has_attribute('window'), "ManagedWindow: self.window does not exist!" + assert hasattr(self, 'window'), \ + "ManagedWindow: self.window does not exist!" self.window.present() #-------------------------------------------------------------------------