Change file extentions in reports when different filetype is chosen

svn: r1534
This commit is contained in:
Don Allingham
2003-05-16 01:49:50 +00:00
parent 4d5f13b00e
commit 4247f38dbb
25 changed files with 142 additions and 38 deletions

View File

@@ -451,6 +451,12 @@ class ReportDialog:
self.output_notebook.set_current_page(self.notebook_page)
if not self.get_target_is_directory():
fname = self.target_fileentry.get_full_path(0)
(path,ext) = os.path.splitext(fname)
fname = path + obj.get_data('ext')
self.target_fileentry.set_filename(fname)
# Does this report format use styles?
if self.style_button:
self.style_button.set_sensitive(obj.get_data("styles"))