[Zope] - #if, #in & caching
Jim Fulton
jim@Digicool.com
Tue, 08 Dec 1998 13:30:53 +0000
John Eikenberry wrote:
>
> One quick question...
>
> In some DTML code I have something line this..
>
> <!--#if product-->
> <table width='90%'>
> <caption><b><!--#var title--></b></caption>
> <!--#in product sort=comp_id-->
> ...
>
> The 'product' variable is a method which returns a list of objects.
>
> Ok, from the docs I would think that 'prodcut' would get cached between
> these two uses. But I was curious if the 'sort' parameter effected this
> behaviour... does adding the 'sort' parameter require the re-evaluation of
> the 'product' method?
No
Jim
--
Jim Fulton mailto:jim@digicool.com
Technical Director (540) 371-6909 Python Powered!
Digital Creations http://www.digicool.com http://www.python.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.