Forum Notification
==================

Sends mail when there is reply on post. Here i'll only show all
functionalities that this tool provides.

    >>> from garbas.forum.interfaces import IForumNotification
    >>> try:
    ...     IForumNotification(self.portal)
    ... except TypeError, e:
    ...     print e[0]
    Could not adapt

Not every content type can provide us notification details. Objects that
adapts IForumNotifiable can provide forum notification. In our case this are
Forum and Topic.

    >>> self.setRoles(['Manager'])
    >>> self.portal.invokeFactory('Forum', 'forum')
    'forum'

    >>> from garbas.forum.notification import ForumNotification
    >>> forum = getattr(self.portal, 'forum')
    >>> IForumNotification(forum).__class__ == ForumNotification
    True

Now we can subscribe, unsubscribe emails to our object.

    >>> forum_ann = IForumNotification(forum)
    >>> forum_ann.email_list()
    []

    >>> forum_ann.subscribe('rok.garbas@gmail.com')
    >>> forum_ann.email_list()
    ['rok.garbas@gmail.com']

    >>> forum_ann.unsubscribe('rok.garbas@gmail.com')
    >>> forum_ann.email_list()
    []

