8 Dec
1998
8 Dec
'98
2:58 a.m.
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?