Reinstate inadvertent removal of rev 19988 change for bug 5900
svn: r21347
This commit is contained in:
parent
3c103143a6
commit
aa7e0b49e4
@ -187,6 +187,10 @@ class DocReportDialog(ReportDialog):
|
||||
default_name = self.dbname + "_" + \
|
||||
"".join(x[0].upper() for x in self.raw_name.split("_"))
|
||||
base = "%s.%s" % (default_name, ext)
|
||||
if self.options.get_output():
|
||||
base = os.path.basename(self.options.get_output())
|
||||
else:
|
||||
base = "%s.%s" % (default_name, ext)
|
||||
spath = os.path.normpath(os.path.join(spath, base))
|
||||
self.target_fileentry.set_filename(spath)
|
||||
|
||||
|
@ -167,7 +167,10 @@ class GraphvizReportDialog(ReportDialog):
|
||||
spath = self.get_default_directory()
|
||||
default_name = self.dbname + "_" + \
|
||||
"".join(x[0].upper() for x in self.raw_name.split("_"))
|
||||
base = "%s%s" % (default_name, ext)
|
||||
if self.options.get_output():
|
||||
base = os.path.basename(self.options.get_output())
|
||||
else:
|
||||
base = "%s.%s" % (default_name, ext)
|
||||
spath = os.path.normpath(os.path.join(spath, base))
|
||||
self.target_fileentry.set_filename(spath)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user