[Zope] Namespace + syntax question
Tres Seaver
tseaver@palladion.com
Tue, 15 Feb 2000 09:32:32 -0600
"RC Compaan" <roche@up-front.co.za>
>
> I want to create a list of image thumbnails in a table. On every tenth item
> i want to start a new row. I thought the "fmod" function is appropriate. I
> get a syntax error however.
>
> My DTML:
>
> <dtml-in "PARENTS[0].objectItems('Image')">
> <dtml-if sequence-start>
> <table><tr>
> </dtml-if>
> <dtml-if "_.fmod(_.['sequence-index'],10)=0">
^
+- BZZT!
The "_" object is dictionary-like, and doesn't want a period for key lookup.
Use "...( _['sequence-index']..." instead.
Aside:
I usually end up throwing in a '<dtml-let ...>' to alias those ridiculous
"identifiers". What is the status of the patch to alias them automatically (I
_still_ can't figure out why they exist)?
Tres.
--
=========================================================
Tres Seaver tseaver@palladion.com 713-523-6582
Palladion Software http://www.palladion.com