[Zope] - Image object enhancements (patch included!)

Ty Sarna tsarna@endicor.com
Mon, 7 Dec 1998 20:58:16 -0600 (CST)


Phillip J. Eby wrote:
> My ImageFile class for ASDF has a __repr__ method that returns a
> (more-or-less) absolute URL, and it doesn't break anything,
> acquisition-wise.  I wouldn't worry about it breaking in ZOPE.  I define
> __str__ roughly the same way as in ZOPE (i.e., <IMG SRC="id">), but have
> __repr__ just return the URL.  This makes it easy to do <IMG SRC="<!--#var
> "`image`"-->" WIDTH=...> stuff.

Cool! Do you mind revealing your technique for getting the URL?