Menu

#4 Using a-tags generates an error

closed-fixed
nobody
None
5
2007-10-30
2007-10-30
No

E

ERROR: test (__main__.FrameSwitchTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_frames4.py", line 73, in test
doc.build(story)
File
"/usr/local/lib/python2.5/site-packages/reportlab/platypus/doctemplate.py",
line 740, in build
self.handle_flowable(flowables)
File
"/usr/local/lib/python2.5/site-packages/reportlab/platypus/doctemplate.py",
line 638, in handle_flowable
if frame.add(f, self.canv, trySplit=self.allowSplitting):
File "/usr/local/lib/python2.5/site-packages/reportlab/platypus/frames.py",
line 157, in _add
flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=aW-w)
File "/usr/local/lib/python2.5/site-packages/reportlab/platypus/flowables.py",
line 102, in drawOn
self._drawOn(canvas)
File "/usr/local/lib/python2.5/site-packages/reportlab/platypus/flowables.py",
line 86, in _drawOn
self.draw()#this is the bit you overload
File "/usr/local/lib/python2.5/site-packages/reportlab/platypus/paragraph.py",
line 627, in draw
self.drawPara(self.debug)
File "/usr/local/lib/python2.5/site-packages/wordaxe/rl/paragraph.py", line
847, in drawPara
if f.link: _do_link_line(0, dx, ws, tx)
File "/usr/local/lib/python2.5/site-packages/wordaxe/rl/paragraph.py", line
118, in _do_link_line
_doLink(tx, xs.link, (t_off, y, t_off+textlen+ws, y+leading))
NameError: global name '_doLink' is not defined

Discussion

  • Dinu C. Gherman

    Dinu C. Gherman - 2007-10-30

    sample for a-tags error

     
  • H. von Bargen

    H. von Bargen - 2007-10-30

    Logged In: YES
    user_id=1008979
    Originator: NO

    workaround: add the line
    from reportlab.platypus.paragraph import _doLink
    to the file wordaxe/rl/paragraph.py
    This will be fixed in the upcoming 0.2.4 release.

     
  • H. von Bargen

    H. von Bargen - 2007-10-30
    • status: open --> closed-fixed
     

Log in to post a comment.