0001878: bug: AttributeError: BookReportDialog instance has no attribute 'has_attribute'
svn: r10173
This commit is contained in:
parent
17c3ef4e9b
commit
8e90f4764d
@ -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
|
||||
|
@ -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()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user