Example #1
0
    def notification_tabs(self):
        tabs = []
        if is_activity_feature_enabled():
            tabs.append(
                {'id': 'mynotifications',
                 'title': _('label_my_notifications', default=u'My notifications'),
                 'icon': None, 'url': '#', 'class': None})

        return tabs
Example #2
0
def log_activity(task, event):

    if not is_activity_feature_enabled():
        return

    notification_center().add_activity(event.object,
                                       event.kind,
                                       event.object.title,
                                       event.label,
                                       event.summary,
                                       event.actor.getId(),
                                       description=event.description)
Example #3
0
def log_activity(task, event):

    if not is_activity_feature_enabled():
        return

    notification_center().add_activity(
        event.object,
        event.kind,
        event.object.title,
        event.label,
        event.summary,
        event.actor.getId(),
        description=event.description)
Example #4
0
 def available(self):
     return is_activity_feature_enabled()
Example #5
0
 def available(self):
     return is_activity_feature_enabled()