[ZCM] [ZC] 278/ 5 Comment "underscore on image bug in DocumentWithImages class of STX"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Fri, 08 Mar 2002 13:20:29 -0500


Issue #278 Update (Comment) "underscore on image bug in DocumentWithImages class of STX"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/278

==============================================================
= Comment - Entry #5 by sidnei on Mar 8, 2002 1:20 pm

Here is the link to the file on the CVS. 

http://cvs.zope.org/Zope/lib/python/StructuredText/DocumentWithImages.py

You can download it to your machine, and download StructuredTextShouldBe.py
and copy it over StructuredText.py if you want to use Structured Text
with Images.

Thanx ZC people for the quickiest response.
________________________________________
= Resolve - Entry #4 by ajung on Mar 8, 2002 12:29 pm

 Status: Pending => Resolved


________________________________________
= Comment - Entry #3 by ajung on Mar 8, 2002 12:29 pm

Fixed in 2.4, 2.5 branches and trunk.

-aj
________________________________________
= Comment - Entry #2 by sidnei on Mar 8, 2002 11:26 am


Uploaded:  "stx_to_html.py"
 - http://collector.zope.org/Zope/278/stx_to_html.py/view
stx_to_html.py: external method which uses DocumentWithImages 
plus a regex to render STX with Images the way it should be.
________________________________________
= Request - Entry #1 by sidnei on Mar 8, 2002 11:23 am


Uploaded:  "StructuredTextShouldBe.py"
 - http://collector.zope.org/Zope/278/StructuredTextShouldBe.py/view
I was trying to use STX with Images, so after searching,
found this url:

http://www.zope.org/Members/Barabbas/stx_to_html

This is a external method which calls STX with DocumentWithImages
and HTMLWithImages to render a "image":img:url_of_image

After examining the code of this external method, i thought that
the bug in DocumentWithImages was fixed after Zope 2.4, so i tried to use
HTMLWithImages and DocumentWithImages directly, instead of using
the regex mentioned there.

So, i think that the bug on DocumentWithImages needs to be fixed,
using the regex of this external method.

Here are the files.
StructuredTextShouldBe.py: how i think that Structured Text should be used
to generate image tags. Seems to be the right way, however images with 
underscore on the url doesnt render correct.

==============================================================