Beispiel #1
0
    def _createDiscussionFor(self, content):
        """
            Create the object that holds discussion items inside
            the object being discussed, if allowed.
        """
        if not self.isDiscussionAllowedFor(content):
            raise DiscussionNotAllowed

        content.talkback = DiscussionItemContainer()
        return content.talkback
Beispiel #2
0
 def createDiscussionFor(self, object):
     """
     This method will create the object that holds 
     discussion items inside the object being discussed.
     """
     object.talkback = DiscussionItemContainer()