Re[2]: [Zope3-Users] correct display of Text field in a view

2007-03-14 Thread Adam Groszer
Hello Ivan, I don't think that you'll need IMultiLineText and MultiLineText. That's why IText and Text are there for. You'll have to register the widget for IText or use it directly in your view with CustomWidgetFactory. In fact it's a good question why Z3 doesn't provide such a widget for Text.

Re: [Zope3-Users] correct display of Text field in a view

2007-03-14 Thread Ivan Horvath
Darryl, Frank, thank you your answers, but finally i keep the widget solution instead of TextAreaWidget i inherited my widget from DisplayWidget, and of course used your replace solution. class IMultiLineText(IText): """this field will be used for the comment because of the correct display

Re: [Zope3-Users] correct display of Text field in a view

2007-03-10 Thread Darryl Cousins
On Fri, 2007-03-09 at 10:06 +0100, Ivan Horvath wrote: > - modify the description widget data with > PlainTextToHTMLRenderer.render(), but then in the browser i can see > only > encoded chars instead of Hi, As for Frank's suggestion try: when rendering the text2html content. That should al

Re: [Zope3-Users] correct display of Text field in a view

2007-03-09 Thread FB
Hi, On Fri, Mar 09, 2007 at 10:06:26AM +0100, Ivan Horvath wrote: > Dear All, > > in my learning application there is a description property > this is declared as Text field in the schema > of course an enter (newline) can be entered in this field, but on the view > page i can see only raw > te

[Zope3-Users] correct display of Text field in a view

2007-03-09 Thread Ivan Horvath
Dear All, in my learning application there is a description property this is declared as Text field in the schema of course an enter (newline) can be entered in this field, but on the view page i can see only raw text the viewpage class is inherited from DisplayForm i've tried already some thi