<s> from __future__ import unicode_literals <EOL> from __future__ import print_function <EOL> from __future__ import absolute_import <EOL> from django . core . urlresolvers import reverse <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from notifications . signals import notify <EOL> from aristotle_mdr . utils import url_slugify_concept , url_slugify_workgroup <EOL> def favourite_updated ( recipient , obj ) : <EOL> notify . send ( obj , recipient = recipient , verb = "<STR_LIT>" , target = obj ) <EOL> def workgroup_item_updated ( recipient , obj ) : <EOL> notify . send ( obj , recipient = recipient , verb = "<STR_LIT>" , target = obj . workgroup ) <EOL> def workgroup_item_new ( recipient , obj ) : <EOL> notify . send ( obj , recipient = recipient , verb = "<STR_LIT>" , target = obj . workgroup ) <EOL> def new_comment_created ( comment ) : <EOL> post = comment . post <EOL> author_name = comment . author . get_full_name ( ) or comment . author <EOL> notify . send ( comment . author , recipient = post . author , verb = "<STR_LIT>" , target = post ) <EOL> def new_post_created ( post , recipient ) : <EOL> op_name = post . author . get_full_name ( ) or post . author <EOL> notify . send ( post . author , recipient = recipient , verb = "<STR_LIT>" , target = post , action_object = post . workgroup ) </s>
