[Zope] _.getitem('some.ext') shorthand?

Duncan Booth duncan@rcp.co.uk
Mon, 28 Feb 2000 11:01:43 +0000


> Given this working DTML
> 
>   <dtml-with "graphic">
>     <dtml-var "_.getitem('pythonpowered.gif')">
>   </dtml-with>
> 
> - what would be a "shorter", more maintenance-friendly version?

<dtml-var "graphic['pythonpowered.gif'].tag()">


-- 
Duncan Booth                                             duncan@dales.rmplc.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan