[Zope] StructuredText question

Andreas Jung lists@andreas-jung.com
Tue, 13 Aug 2002 12:11:44 +0200


There has been a change in CVS for Zope 2.6 to make
images available by default (at least inside DTML).
I assume you are using 2.5.X. Take a look at
the definition of the HTML function in StructuredText.py.
Try to replace "doc = Document(st)" with "doc = DocumentWithImages(st)"
and maybe "HTMLNG = HTMLClass.HTMLClass()" with "HTMLNG =
HTMLWithImages.HTMLWithImages()"
(untested).

-aj


----- Original Message -----
From: "Andreas Kostyrka" <andreas@kostyrka.priv.at>
To: <zope@zope.org>
Sent: Tuesday, August 13, 2002 12:06
Subject: [Zope] StructuredText question


> Hi!
>
> How do I create an <IMG> tag with Structured Text?
> "Zope":img:http://url/
>
> seems not to work for me. My text is generated in Python script like
> this:
>
>
> from StructuredText.StructuredText import HTML
>
> def text_to_html(txt):
>     return HTML(txt,header=0)
>
> Andreas
>
>
> ___________________________(s____________________
> Zope maillist  -  Zope@zope.org
> 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 )
>