"generic" CookedBody - was RE: [Zope-CMF] Newbie question
CMFDocument
marc lindahl
marc@bowery.com
Thu, 09 Aug 2001 14:22:28 -0400
> From: "Jon Edwards" <jon@pcgs.freeserve.co.uk>
> Date: Thu, 9 Aug 2001 17:17:27 +0100
> To: "marc lindahl" <marc@bowery.com>, "Zope-Cmf" <zope-cmf@zope.org>
> Cc: "Tres Seaver" <tseaver@digicool.com>
> Subject: RE: "generic" CookedBody - was RE: [Zope-CMF] Newbie question
> CMFDocument
>
>> What about having that generic method know whether to render based on
>> workflow (e.g. if authenticated user is a reviewer or not)?
>
> I may be wrong, but I would have thought the decision as to whether to
> render or not would already have been taken before this method was called?
> It's just a version of the View method for showing the "guts" of objects
> within a page/composite-doc, rather than on their own.
That means putting the logic into the composite page -- all over the place,
and if you don't to it correctly, your workflow is blown.