[Zope] Preserve HTML tags, such as <P>, not into < P> in
python code for Zope 2.9.4
Andreas Jung
lists at zopyx.com
Thu Nov 2 15:07:27 EST 2006
--On 2. November 2006 11:59:34 -0800 Zhi-Wei Lu <zwlu at ucdavis.edu> wrote:
> Hi Zope Gurus,
>
> During the server upgrade from Zope 2.7.4 to 2.9.4, I encountered
> a problem for the following simple python script:
>
> text = container.research[name].research_description_html
> text = str(text)
> return text[0:400] + '...'
>
> This code suppose to return the first 400 characters of an
> abstract, the abstract is in HTML.
>
what is 'research[name]' for a type? Same for 'research_description_html'?
How can this be reproduced.
You must provide some reasonable information in order to get help.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20061102/17c51ec8/attachment.bin
More information about the Zope
mailing list