[Twisted-Python] ParagraphText refuse to work

Rich Cavanaugh rich at enflyer.com
Wed Aug 6 13:10:20 EDT 2003


Attached is a minor patch to widgets.py that should correct this. I 
haven't tested this though.

rich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widgets.py-paratext.patch
Type: application/applefile
Size: 1435 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030806/5fd4e540/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widgets.py-paratext.patch
Type: application/octet-stream
Size: 812 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030806/5fd4e540/attachment.obj 
-------------- next part --------------


On Wednesday, August 6, 2003, at 09:50 AM, RITA Y/O RODRIGO DIAZ Y/O 
BENENSON wrote:

> Hi!
>
> I have posted this question some time ago, but I got no answer.
> I'm making a very simple Woven program that publish over web the 
> content of a complex objects structure. So I created an IModel 
> interface for the object.
>
> The problem that I have is that some elements of the model return 
> Strings. So I use the ParagraphText view. But it does not work as 
> espected.
>
> It should render "a\nb\nc" as:
>
> <p>a</p><p>b</p><p>c</p>
>
> but I only get:
>
> <p>abc</p>
>
> if I change ParagraphText by a Text view I got:
>
> a
> b
> c
>
>
> So it seems that the data arrive fine, but is not render as expected.
>
> Where is the problem ?
>
> I have checked the CVS but the code looks the same as for Twisted 
> 1.0.6 (and with 1.0.5 the behaviour was the same).
>
> I suppose that I'm doing something wrong. Please, support...
>
>
> RodrigoB.
>
>
>
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


More information about the Twisted-Python mailing list