[Zope-CMF] Removing comments?

Tres Seaver tseaver@zope.com
24 May 2002 08:52:04 -0400


On Fri, 2002-05-24 at 00:55, John D. Heintz wrote:
> I've been wondering the exact same thing...
> 
> Thanks for asking.
> 
> John
> 
> On Thu, 2002-05-23 at 07:44, Stefan H. Holek wrote:
> > Is there a way to selectively remove comments? I could not find anything in 
> > the DiscussionTool/Discussable APIs. It is possible to "Retract" a comment, 
> > but this has the effect of the particular reply still beeing returned by 
> > getReplies() but then not being accessible - Duh! This is CMF 1.2

There is an API for this
('CMFDefault.DiscussionItem.DiscussionItemContainer.deleteReply'), but
the default skins do not expose the functionality.  You could add a
custom action to DiscussionItem which does this (note that the
underlying method is protected by the 'Manage portal' permission).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com