[Zope] url_quote written differently

Peter Bengtsson peter@grenna.net
Thu, 25 Jan 2001 22:03:28 -0000


sorry. Bad example.

I just don't want to do it that way. I'm passing it as a parameter, and it has just got to happen :)
From inside a external python method it would be something like this:

from DocumentTemplate import DT_Util
text_html_quoted= DT_Util.html_quote(text_with_html)

Look at the timeobject.
You can either...
<dtml-var "ZopeTime()" fmt="%a">
...or...
<dtml-var "ZopeTime().strtime('%a')">

Something like that, please, folks.

Cheers

> <dtml-var "'text %s text'%id" url_quote> the url_quote is a parameter to
> dtml-var.
> --
>   Andy McKay.
> 
> 
> ----- Original Message -----
> From: "peter bengtson" <peter@grenna.net>
> To: <zope@zope.org>
> Sent: Thursday, January 25, 2001 11:01 AM
> Subject: [Zope] url_quote written differently
> 
> 
> > 1a) <dtml-var id> is one way of writing it.
> >
> > 2a) <dtml-var "'text %s text'%id"> is another way of writing it
> >
> > 1b) <dtml-var id url_quote> is a second way of writing it
> >
> > 2b) ????? How do I do this one??
> >
> >
> > I have tried this, but that didn't work: <dtml-var "'text %s
> > text'%id.url_quote()"> , but that didn't work either.
> > What's the syntax? Anybody?
> >
> > Cheers, Peter
> >
> >
> > _______________________________________________
> > 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 )
> >
>