Thanks for the tip Duncan,
I find it strange that this utility function is not in the _ namepace...
time to make a trip to the Tracker. It seems like a url-encoding
function should be directly accessible from zope.
Thanks
Kapil
Duncan Booth wrote:
>
> > I often create an external method for t
Chris Withers writes:
> How about doing the equivalent on html_quote in python?
from DocumentTemplate. import DT_Util
def html_quote(str):
return DT_Util.html_quote(str)
Dieter
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
> I often create an external method for this...
>
> em:
>
> def url_quote(s):
>import urllib
>return urllib.quote_plus(s, safe='')
>
> Silly, but it works.
>
> I think the alternative is to hack the DT_Util.py module in the
> DocumentTemplate directory to expose urllib or a derived f
> Didn't happen for me (Zope 2.2b4). I got
> Invalid attribute name, "url_quote", for tag "REQUEST.set('URL',
>URL2+'?action=Add Material
> Info&product_number='+product_number)" url_quote>,
> on line 195 of index_html
>
> It also fails for ... It looks like url_quote is
> only appli
[EMAIL PROTECTED] wrote:
> > It also fails for ... It looks like url_quote is only applicable
> to ...which is sort of painful.
not really... how and what would you apply html_quote to in call and
return (return is slightly easier)
cheers,
Chris
___
On Thu, Jul 20, 2000 at 10:06:33AM +0100, Chris Withers wrote:
> Kapil Thangavelu wrote:
> > what i am trying to do
> >
How about doing the equivalent on html_quote in python?
Chris
Chris McDonough wrote:
>
> I often create an external method for this...
>
> em:
>
> def url_quote(s):
>import urllib
>return urllib.quote_plus(s, safe='')
>
> Silly, but it works.
>
> I think the alternative is to hack t
I often create an external method for this...
em:
def url_quote(s):
import urllib
return urllib.quote_plus(s, safe='')
Silly, but it works.
I think the alternative is to hack the DT_Util.py module in the
DocumentTemplate directory to expose urllib or a derived function.
> -Original
Kapil Thangavelu wrote:
> what i am trying to do
>