fixed check for attribute 'window' by using has_attribute()

0001867: Patch containing fixes (for reporting and general)


svn: r10151
This commit is contained in:
Brian Matherly 2008-03-01 20:55:36 +00:00
parent 76d7b01103
commit 1f57d5224c
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
2008-02-26 Brian Matherly <brian@gramps-project.org>
2008-03-01 Bob Ham <rah@bash.sh>
* 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 <brian@gramps-project.org>
* src/ReportBase/_CommandLineReport.py:
0001855: BUG when running family_group report from command line
(no attribute get_gramps_id)

View File

@ -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()
#-------------------------------------------------------------------------