[Zope-dev] Problem with attributes and/or aquisition?
Martijn Pieters
mj@antraciet.nl
Mon, 22 Nov 1999 14:33:36 +0100
At 13:48 22-11-99 , Bill Anderson wrote:
>OK, in a dtml-in iteration of PARENTS[-1], I have the following code:
>...
> <dtml-if "meta_type=='Folder'">
> <dtml-if "_.hasattr('_[id]','SiteMenu')">
> <dtml-in "_[id].objectValues(['Folder'])">
> <dtml-if "_.hasattr('_[id]','SiteMenu')">
> ...do stuff with RXML and tables ...
Make that:
<dtml-if "_.hasattr(_[id],'SiteMenu')">
at least (no single quotes around _[id]).
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| T: +31 35 7502100 F: +31 35 7502111
| mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
---------------------------------------------