Re: p.a.discussion and infinite recursion after deleting a comment
"Jens W. Klein" <jens-/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Organization | Klein & Partner KG |
| Message-ID | <[email protected]> |
For the records (still curios how this can happen).
Quickfix is this simple view which deletes the annotation on content
where the problem occurs:
from Products.Five import BrowserView
from zope.annotation.interfaces import IAnnotations
from plone.app.discussion.conversation import ANNOTATION_KEY
class RemoveComments(BrowserView):
def __call__(self):
anno = IAnnotations(self.context)
if ANNOTATION_KEY in anno:
del anno[ANNOTATION_KEY]
--
Klein & Partner KG, member of BlueDynamics Alliance
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk