[Zope] How to use newline_to_br?

2000-12-04 Thread Roland C. Reumerman

Scenario:
- a tried to show a multi-line text field in HTML with the current return 
line feeds converted to BR
- I made a request form with a text field called data
- in the response method there is a dtml-var data fmt="newline_to_br"
On viewing the former, and then submitting it to the latter:
Error Type: TypeError
Error Value: not all arguments converted
??
I tried some alternatives, but nothing worked.

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] How to use newline_to_br?

2000-12-04 Thread Andy Dawkins

Almost got it

dtml-var data newline_to_br

:)

-Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Roland C. Reumerman
 Sent: 04 December 2000 12:30
 To: [EMAIL PROTECTED]
 Subject: [Zope] How to use newline_to_br?


 Scenario:
 - a tried to show a multi-line text field in HTML with the current return
 line feeds converted to BR
 - I made a request form with a text field called data
 - in the response method there is a dtml-var data fmt="newline_to_br"
 On viewing the former, and then submitting it to the latter:
 Error Type: TypeError
 Error Value: not all arguments converted
 ??
 I tried some alternatives, but nothing worked.

 __
 ___
 Get more from the Web.  FREE MSN Explorer download :
 http://explorer.msn.com


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] How to use newline_to_br?

2000-12-04 Thread Max Møller Rasmussen

From: Roland C. Reumerman [mailto:[EMAIL PROTECTED]]

- in the response method there is a dtml-var data fmt="newline_to_br"

You are allmost there:

dtml-var data newline_to_br

Should do it for you

Regards Max M

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )