[Zope] tal:repeat

Dieter Maurer dieter@handshake.de
Tue, 30 Apr 2002 21:50:35 +0200


Tom Nixon writes:
 > ...
 > I need to have a
 > different bgcolor attribute on the td if we're already in that folder.
Assuming, ids are unique, you can use:

	  tal:attributes="
	     bgcolor  python: here.getId() == folder.getId() and 'other bgcolor' or default;
	     "

Dieter