RE: [Zope] Odd behaviour while searching in the namepsace
From: Evan Simpson [mailto:evan@digicool.com]
How do I use the (r)strip function in an expression like <dtml-if "_.has_key(mwid)">.
You can <dtml-if expr="_.has_key(string.strip(mwid))"> and <dtml-var expr="_[string.strip(mwid)].tag()">
Make that <dtml-if expr="_.has_key(_.string.strip(mwid))"> and <dtml-var expr="_[_.string.strip(mwid)].tag()"> -- Martijn Pieters, Software Engineer | Digital Creations http://www.digicool.com | Creators of Zope http://www.zope.org | mailto:mj@digicool.com ICQ: 4532236 | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 -------------------------------------------
Hi,
From: Evan Simpson [mailto:evan@digicool.com]
How do I use the (r)strip function in an expression like <dtml-if "_.has_key(mwid)">.
You can <dtml-if expr="_.has_key(string.strip(mwid))"> and <dtml-var expr="_[string.strip(mwid)].tag()">
Make that
<dtml-if expr="_.has_key(_.string.strip(mwid))">
and
<dtml-var expr="_[_.string.strip(mwid)].tag()">
-- Martijn Pieters, Software Engineer
Thanks, that did the trick. Henny van der Linde Leiden University
participants (2)
-
H.G.J. van der Linde -
Martijn Pieters