[Zope] Background Images

Andreas Kostyrka andreas@mtg.co.at
Sat, 24 Jul 1999 03:04:38 +0200 (CEST)


On Thu, 22 Jul 1999, Martijn Pieters wrote:

> At 09:01 21/07/99 , Andreas Kostyrka wrote:
> >On Wed, 21 Jul 1999, Arpad Kiss wrote:
> >
> > > > A related question:
> > > > How does one insert an image with BORDER=0?
> > >
> > > <img src="tealtile" border=0>
> >That is only partially correct. I'd rather prefer it with <dtml-var>
> >notation, because <dtml-var> always returns the true absolute URL. Which
> >is an advantage, because the image is probably downloaded once, instead
> >for once per subfolder.
> 
> Zope 1.x:
> 
> <!--#with tealtile-->
> <IMG SRC="<!--#var absolute-url-->" BORDER=0 WIDTH=<!--#var width--> 
> HEIGHT=<!--#var height--> ALT="<!--#var title_or_id-->">
> <!--#/with-->
> 
> Zope 2:
> 
> <dtml-var "tealtile.tag(border=0)">
Which version of Zope does support this?
  File /home/zope/Zope-2.0.0a3-src/lib/python/DocumentTemplate/DT_Util.py,
line 315, in eval
                (Object: mtgsmall_img.tag(border=0))
              File <string>, line 0, in ?
              File
/home/zope/Zope-2.0.0a3-src/lib/python/DocumentTemplate/DT_Util.py, line
126, in careful_getattr
            AttributeError: tag


Andreas
-- 
Win95: n., A huge annoying boot virus that causes random spontaneous system
     crashes, usually just before saving a massive project.  Easily cured by
     UNIX.  See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.