[Zope] forbid to render Objects

Jeffrey Shell Jeffrey@digicool.com
Thu, 20 May 1999 15:27:28 -0400


Instead of doing #var on the image id, try the following::

<BODY BACKGROUND="<!--#var "my_back.absolute_url()"-->"...>

Using #var on an image object in DTML returns the <IMG SRC tag.  Most of
the time this is desired behavior as it's a good shortcut.  But you can
also address images like you would in a regular filebased system.

You can do BACKGROUND="my_back", or even BACKGROUND="<!--#var
URL1-->/my_back".  Using the absolute_url method can be desirable on
images for caching purposes.  (since it's the absolute URL to the image
object.  With acquisition, it's very possible for the following requests
to return the same thing::

GET http://localhost:9673/myback ...
GET http://localhost:9673/folder1/myback ...

).  absolute_url() gets around this problem.


-----Original Message-----
From: mitaco@gmx.net [mailto:mitaco@gmx.net]
Sent: Wednesday, May 19, 1999 10:11 AM
To: zope@zope.org
Subject: [Zope] forbid to render Objects


hi,

i test this great Zope at the moment, and there is a littel prob. I want
a special background-image.
So i put this image into the ZODB (as Image -> Add) and change my
standard-Header into :
<HTML><TITLE>...</TITLE><BODY Background="<!--#var my_back -->

and i get :
<HTML><TITLE>...</TITLE><BODY background="<img
src="http://localhost:9673/my_back" width="2200" height="2"
alt="Background">">

so, i can also write a python-method, but why ?

Greetings,

Mike


_______________________________________________
Zope maillist  -  Zope@zope.org
http://www.zope.org/mailman/listinfo/zope

(For developer-specific issues, use the companion list,
zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )