[Zope] Problem with PythonScript and embedded HTML

Chris McDonough chrism@digicool.com
Fri, 6 Apr 2001 09:55:31 -0400


How does html-quoting the title fix the reported bug?  I'm confused.

----- Original Message -----
From: "Pierre-Julien Grizel" <grizel@mouli.net>
To: "Chris McDonough" <chrism@digicool.com>; "Zope mailing list"
<zope@zope.org>
Sent: Friday, April 06, 2001 9:51 AM
Subject: Re: [Zope] Problem with PythonScript and embedded HTML



No it cannot work for you either ! :-)))

But it's because I'd forgotten to say it was on the "edit" tab...


Well, the solution is there : Here is the diff for
$ZOPE/lib/python/OFS/dtml/documentEdit.dtml :



20c20
<    title><dtml-var title html_quote></dtml-if>">
---
>    title><dtml-var title></dtml-if>">




Once again, such a bug is really a shame...... :-(
Please can you apply this patch on the CVS at least ?


Many thanks,


P.-J.





Chris McDonough wrote:
>
> Indeed, works for me under a the latest 2.3 branch...
>
> ----- Original Message -----
> From: "Chris Withers" <chrisw@nipltd.com>
> To: "Mayers, Philip J" <p.mayers@ic.ac.uk>
> Cc: <zope@zope.org>
> Sent: Friday, April 06, 2001 8:36 AM
> Subject: Re: [Zope] Problem with PythonScript and embedded HTML
>
> > "Mayers, Philip J" wrote:
> > >
> > > Try this in a PythonScript:
> > >
> > > print """<TEXTAREA NAME="whatever">%s</TEXTAREA><H2>This text will
> appear
> > > outside the edit box</H2>"""
> > >
> > > Hit the save-changes and watch the sparks fly. I guess the contents of
> the
> > > *real* edit textarea should be HTML-quoted?
> >
> > I'm sure I saw CVS notifications saying this ahd been fixed :-S
> >
> > Collector it is it hasn't in 2.3.1 final.
> >
> > cheers,
> >
> > Chris
> >
> > _______________________________________________
> > 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 )
> >
>
> _______________________________________________
> 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 )

--
If the only tool you have is a hammer,
    you tend to see every problem as a nail.
Si la unica herramita te tienes es un martillo,
    tendras tendancia a ver cada problema como un clavo.
Wenn Ihnen als einziges Werkzeug ein Hammer zur Verfügung steht,
    neigen Sie dazu, jedes Problem als Nagel zu betrachten.
Si le seul outil dont vous disposez est un marteau,
    vous avez tendance à voir chaque problème comme un clou.
                                       --Abraham Maslow