9 Sep
1999
9 Sep
'99
3:28 p.m.
-----Original Message----- From: Martijn Pieters [mailto:mj@antraciet.nl] Sent: Thursday, September 09, 1999 3:52 AM To: Tom Schwaller Cc: zope@zope.org Subject: Re: [Zope] <dtml-with> problem
where I use numbers for the folder names, which seems natural here. When I want to acces this objects with
<dtml-with "issue.1998.01">
Numbers are not valid python names. You can, however, use getattr: <dtml-with "_.getattr(_.getattr(issue, '1998'), '01')"> or: <dtml-with issue> <dtml-with 1998> <dtml-with 01> ... DTML tags arguments used 'by name' and not in an expression can access illegal python names (because it uses getattr). ;) -Michel