new logging scheme
svn: r6080
This commit is contained in:
@ -47,6 +47,14 @@ _TB = 'Times-Bold'
|
||||
_TI = 'Times-Italic'
|
||||
_TBI = 'Times-BoldItalic'
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# Set up logging
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import logging
|
||||
log = logging.getLogger(".PdfDoc")
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# ReportLab python/PDF modules
|
||||
@ -183,9 +191,6 @@ class PdfDoc(BaseDoc.BaseDoc):
|
||||
except IOError,msg:
|
||||
errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
|
||||
raise Errors.ReportError(errmsg)
|
||||
except:
|
||||
import DisplayTrace
|
||||
DisplayTrace.DisplayTrace()
|
||||
|
||||
if self.print_req:
|
||||
apptype = 'application/pdf'
|
||||
|
Reference in New Issue
Block a user