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
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)
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)
def available(self): return is_activity_feature_enabled()
def available(self): return is_activity_feature_enabled()