[ZPT] newline_to_br problem

Umesh Soni u.soni@cs.ucl.ac.uk
Wed, 9 Jan 2002 22:54:33 +0000

Hi there,

I can't seem to get this simple example to render.
(article is locally defined)

<div tal:define="pss modules/Products.PythonScripts.standard">
  <span tal:replace="python:pss.newline_to_br(article.body) |
          default">nothing to see</span>

traceback excerpt..

    (Info: pss.newline_to_br(article.body) | default)
    File Python expression "pss.newline_to_br(article.body) |
    default", line 2, in f
      (Object: guarded_getattr)
  TALESError: Sorry, an error occurred

Anyone care to enlighten me?

Umesh Soni