0001878: bug: AttributeError: BookReportDialog instance has no attribute 'has_attribute'

svn: r10173
This commit is contained in:
Brian Matherly 2008-03-02 23:32:01 +00:00
parent 17c3ef4e9b
commit 8e90f4764d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-02 Brian Matherly <brian@gramps-project.org>
* src/ManagedWindow.py:
0001878: bug: AttributeError: BookReportDialog instance has no
attribute 'has_attribute'
2008-03-02 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py:
* src/Utils.py

View File

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