reportlab/platypus/doctemplate.py
changeset 2127 d5e43db37d59
parent 2113 e82d8b3880d8
child 2192 955d4bf3b9d2
equal deleted inserted replaced
2126:cb38a911f83c 2127:d5e43db37d59
     1 #copyright ReportLab Inc. 2000
     1 #copyright ReportLab Inc. 2000
     2 #see license.txt for license details
     2 #see license.txt for license details
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/doctemplate.py?cvsroot=reportlab
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/doctemplate.py?cvsroot=reportlab
     4 #$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.67 2003/11/09 00:54:22 andy_robinson Exp $
     4 #$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.68 2003/11/13 17:15:19 william_ng Exp $
     5 
     5 
     6 __version__=''' $Id: doctemplate.py,v 1.67 2003/11/09 00:54:22 andy_robinson Exp $ '''
     6 __version__=''' $Id: doctemplate.py,v 1.68 2003/11/13 17:15:19 william_ng Exp $ '''
     7 
     7 
     8 __doc__="""
     8 __doc__="""
     9 This module contains the core structure of platypus.
     9 This module contains the core structure of platypus.
    10 
    10 
    11 Platypus constructs documents.  Document styles are determined by DocumentTemplates.
    11 Platypus constructs documents.  Document styles are determined by DocumentTemplates.
   608             try:
   608             try:
   609                 first = flowables[0]
   609                 first = flowables[0]
   610                 self.handle_flowable(flowables)
   610                 self.handle_flowable(flowables)
   611             except:
   611             except:
   612                 #if it has trace info, add it to the traceback message.
   612                 #if it has trace info, add it to the traceback message.
   613                 if first._traceInfo:
   613                 if hasattr(first, '_traceInfo') and first._traceInfo:
   614                     exc = sys.exc_info()[1]
   614                     exc = sys.exc_info()[1]
   615                     args = list(exc.args)
   615                     args = list(exc.args)
   616                     tr = first._traceInfo
   616                     tr = first._traceInfo
   617                     args[0] = args[0] + '\n(srcFile %s, line %d char %d to line %d char %d)' % (
   617                     args[0] = args[0] + '\n(srcFile %s, line %d char %d to line %d char %d)' % (
   618                         tr.srcFile,
   618                         tr.srcFile,