[Zope] Extending Image via ZClass
James W. Howe
jwh@allencreek.com
Wed, 19 Jan 2000 12:29:38 -0500
At 11:33 AM 1/19/00 -0500, you wrote:
> > -----Original Message-----
> > From: James W. Howe [mailto:jwh@allencreek.com
> > What I don't know how to do, however, is modify the way the object
> renders
> > itself by default. For example, if I use the following:
> >
> > <dtml-var CaptionedImageObjectInstance>
> >
> > I get an img tag for the image associated with my object.
> > What I want to be able to do is generate my own tags so as to include
> caption and
> > attribution information in a standard format. How can I do this?
>
>Overload the __str__ method. Unless there is some other product or
>ZClass someone has made that allready does this, you will need to create
>a Python base class and override __str__ there.
After poking around, it would appear that the Renderable product does just
what you describe.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103