24 Oct
2001
24 Oct
'01
2:56 p.m.
That is some pretty funky code, Seb, but it worked! Would you *please* explain what you did? Especially the syntax with all the wild punctuation! The idea of this, my first external method, was to keep_it_simple. So much for that. Here's the line that worked:
<span class="top"><img src="images/top" width=<dtml-var "sizeCalc(1008,sizer(_.None,_))"> height=<dtml-var "sizeCalc(82,sizer(_.None,_))">></span>
Ben, you'll find an explanation in your online-help,under Zope Help->Api Reference->DTML Method see the block about __call__. Another source (highly recommended!) would be the book Dieter Maurer is writing about zope at http://www.handshake.de/~dieter/pyprojects/zope/book/book.html esp chapter 3, paragraph 4.4. cheers, oliver