"generic" CookedBody - was RE: [Zope-CMF] Newbie question CMF Document

Jon Edwards jon@pcgs.freeserve.co.uk
Thu, 9 Aug 2001 11:57:40 +0100


Damn, I should have checked the archives, I knew I'd seen this before...

> -----Original Message-----
> From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk]
> Sent: 08 August 2001 10:24

> Incidentally, it seems that discussionitem, document, and
> newsitem all have a CookedBody. Would it make sense to give all
> other content-types a CookedBody method? Seems to me it would
> make it much easier when you're writing methods that display
> objects, as you wouldn't have to worry about what type/meta_type
> it is, you could just use CookedBody to display the "guts" of the object?
>
> So just as all types have a "view" method for when they are
> called directly, they also would have a "CookedBody" method for
> when they are called within another method/object?

Tres wrote (4th June)

> I will probably be adding a more "generic" method than CookedBody (e.g.,
it
> will work for Images and Links, as well) to the 'Contentish' interface
very
> soon (after 1.1final).  This method will return the "guts" of an object,
> suitable
> for injecting into another page (your table cell, or a div, for instance).
> We need such a common method in order to make "composites" possible.
>
> Tres.

Is this in the pipeline in the near future Tres?

Cheers, Jon