[Zope] Odd behaviour while searching in the namepsace

Martijn Pieters mj@digicool.com
Sat, 12 Feb 2000 05:28:37 -0500


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 
-------------------------------------------