* src/ReportBase/_BareReportDialog.py (setup_title): Set name to

empty string if no person is available.
	* src/ReportBase/_ReportDialog.py (get_header): Make meaningful
	title for the header when name is empty.


svn: r7381
This commit is contained in:
Alex Roitman
2006-10-10 00:09:24 +00:00
parent 7c240f8d3c
commit 82f2d2d69d
3 changed files with 14 additions and 4 deletions

View File

@@ -306,7 +306,10 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
"""Set up the title bar of the dialog. This function relies
on the get_title() customization function for what the title
should be."""
self.name = NameDisplay.displayer.display(self.person)
if self.person:
self.name = NameDisplay.displayer.display(self.person)
else:
self.name = ''
self.window.set_title(self.get_title())
def setup_header(self):