Fix some aq wrapper errors introduced by my previous fix but not

exposed since the functional tests weren't running.

svn path=/plone.app.discussion/trunk/; revision=48836
This commit is contained in:
Ross Patterson 2011-04-14 19:06:24 +00:00
parent d8f864596e
commit d3025fb3ec

View File

@ -244,7 +244,7 @@ class Conversation(Traversable, Persistent, Explicit):
# Add the annotation if not already done
annotions = IAnnotations(self.__parent__)
if not ANNOTATION_KEY in annotions:
annotions[ANNOTATION_KEY] = self
annotions[ANNOTATION_KEY] = aq_base(self)
# Notify that the object is added. The object must here be
# acquisition wrapped or the indexing will fail.