[Zope] Removing " 's from strings

Peter Armstrong ashen_s@yahoo.com.au
Tue, 20 Nov 2001 17:57:56 +1100


I'm trying to make an id from a string, but the string has " on each end of
it, and I can't find a way to get rid of them in Zope.

I thought of something like:
<dtml-call "REQUEST.set('thing', _.string.translate(thestring,
_.string.maketrans('',''), '"'))">

But that seems to treat it as the start of a piece of text, and so then
thinks that the dtml-let I have just before that line doesn't have a closing
tag!

A way to use the url_quote parameter at the same time as setting it's value
in the REQUEST thingy would be good, but I don't how to work it.

Can anyone help?

Peter Armstrong


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com