From 1f57d5224cb844414b7a439513649f4090ca7418 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 1 Mar 2008 20:55:36 +0000 Subject: [PATCH] fixed check for attribute 'window' by using has_attribute() 0001867: Patch containing fixes (for reporting and general) svn: r10151 --- ChangeLog | 7 ++++++- src/ManagedWindow.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e947ca29..0ddbf64eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2008-02-26 Brian Matherly +2008-03-01 Bob Ham + * src/ManagedWindow.py (ManagedWindow.present): fixed check for + attribute 'window' by using has_attribute() + 0001867: Patch containing fixes (for reporting and general) + +2008-03-01 Brian Matherly * src/ReportBase/_CommandLineReport.py: 0001855: BUG when running family_group report from command line (no attribute get_gramps_id) diff --git a/src/ManagedWindow.py b/src/ManagedWindow.py index 1ec716fe0..703d8f40f 100644 --- a/src/ManagedWindow.py +++ b/src/ManagedWindow.py @@ -466,7 +466,7 @@ class ManagedWindow: if self.isWindow : self.present(self) else : - assert self.window, "ManagedWindow: self.window does not exist!" + assert self.has_attribute('window'), "ManagedWindow: self.window does not exist!" self.window.present() #-------------------------------------------------------------------------