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

@ -78,7 +78,12 @@ class PdfDrawDoc(DrawDoc.DrawDoc):
self.f.setAuthor(self.name)
def close(self):
self.f.save()
try:
self.f.save()
except IOError,msg:
raise Errors.ReportError(_("Could not create %s") % self.filename,msg)
except:
raise Errors.ReportError(_("Could not create %s") % self.filename)
def start_paragraph(self,style_name):
pass