Hmmm... not exactly good. I had to make a function
def replace_to_html( s ):
try:
return XML( s.replace( '\n', '<br />' ) )
except:
return s
because s is None it has no replace function...And call: db.some_table.some_text.represent = lambda s: replace_to_html( s )

