[Zope] zope performance issues
Paul Winkler
pw_lists at slinkp.com
Fri May 21 11:26:10 EDT 2004
On Fri, May 21, 2004 at 06:00:10AM -0700, Trevor Warren wrote:
>
> Hey Matt,
>
> --- Matt Hamilton <matth at netsight.co.uk> wrote:
> > Trevor Warren wrote:
> > Again, I don't know what your transactions are. Can
> > you post the code?
> [snip]
>
> Will send the code across to you directly instead of
> posting the whole file to the list.
>
> What would be a better way of handling the images
> below??. Is the current code doable??.
>
>
(snip)
> <dtml-with shopcart.gif>
> <A href="tpcw" ><IMG height=30 alt="Shopping Cart"
> src="<dtml-var absolute_url>" width=120 border=0></A>
> </dtml-with>
(snip)
Not an optimization, but a simplification...
If you give shopcart.gif a Title property with the value
"Shopping Cart", and assuming the height and width you
specified above are the actual height/width of the image,
you can replace the above 4 lines with:
<a href="tpcw"><dtml-var shopcart.gif></a>
It will render the height, width, and alt attributes for you.
It will also do border=0 by default.
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list