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