690 'comment_removed' : u'note_delete_small.png', |
690 'comment_removed' : u'note_delete_small.png', |
691 } |
691 } |
692 |
692 |
693 #type/msg |
693 #type/msg |
694 MSGS = { |
694 MSGS = { |
695 'text_edited' : _(u'Text %(link_to_text)s edited'), |
695 'text_edited' : ugettext_lazy(u'Text %(link_to_text)s edited'), |
696 'text_edited_new_version' : _(u'Text %(link_to_text)s edited (new version created)'), |
696 'text_edited_new_version' : ugettext_lazy(u'Text %(link_to_text)s edited (new version created)'), |
697 'text_created' : _(u'Text %(link_to_text)s added'), |
697 'text_created' : ugettext_lazy(u'Text %(link_to_text)s added'), |
698 'text_removed' : _(u'Text %(link_to_text)s removed'), |
698 'text_removed' : ugettext_lazy(u'Text %(link_to_text)s removed'), |
699 'comment_created' : _(u'Comment %(link_to_comment)s added on text %(link_to_text)s'), |
699 'comment_created' : ugettext_lazy(u'Comment %(link_to_comment)s added on text %(link_to_text)s'), |
700 'comment_removed' : _(u'Comment %(link_to_comment)s removed from text %(link_to_text)s'), |
700 'comment_removed' : ugettext_lazy(u'Comment %(link_to_comment)s removed from text %(link_to_text)s'), |
701 'user_created' : _(u'User %(username)s added'), |
701 'user_created' : ugettext_lazy(u'User %(username)s added'), |
702 'user_enabled' : _(u'User %(username)s access to workspace enabled'), |
702 'user_enabled' : ugettext_lazy(u'User %(username)s access to workspace enabled'), |
703 'user_refused' : _(u'User %(username)s access to workspace refused'), |
703 'user_refused' : ugettext_lazy(u'User %(username)s access to workspace refused'), |
704 'user_suspended' : _(u'User %(username)s access to workspace suspended'), |
704 'user_suspended' : ugettext_lazy(u'User %(username)s access to workspace suspended'), |
705 'user_activated' : _(u'User %(username)s access to workspace activated'), |
705 'user_activated' : ugettext_lazy(u'User %(username)s access to workspace activated'), |
706 'user_approved' : _(u'User %(username)s has activated his account'), |
706 'user_approved' : ugettext_lazy(u'User %(username)s has activated his account'), |
707 } |
707 } |
708 |
708 |
709 def is_same_user(self, other_activity): |
709 def is_same_user(self, other_activity): |
710 if (self.originator_user != None or other_activity.originator_user != None) and self.originator_user != other_activity.originator_user: |
710 if (self.originator_user != None or other_activity.originator_user != None) and self.originator_user != other_activity.originator_user: |
711 return False |
711 return False |