Esempio n. 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
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
 def available(self):
     return is_activity_feature_enabled()
Esempio n. 5
0
 def available(self):
     return is_activity_feature_enabled()