body = XML('dude man',BR())
return dict(body=body)

On Oct 2, 11:43 am, lucas <sjluk...@gmail.com> wrote:
> hello one and all,
>
> i am trying to insert the html tag <br /> under default.py in index(),
> something like:
>
> def index():
>   body = 'dude man'+BR()
>   return dict(body=body)
>
> which blows and gives an Internal error, TypeError: cannot concatenate
> 'str' and 'BR' objects
>
> or even simpler like,
>
> def index():
>   body = 'dude man<br />'
>   return dict(body=body)
>
> and the html see it has the newline tag instead of as a string.
>
> so how to i embed the <br /> html tag under python controllers?  thank
> you in advance.  lucas

Reply via email to