示例#1
0
文件: nipsa.py 项目: wantongtang/h
    def unflag(self, user):
        """
        Remove the NIPSA flag for a user.

        If the user isn't NIPSA'd then nothing will happen (but a
        "remove_nipsa" message for the user will still be published to the
        queue).
        """
        user.nipsa = False
        reindex_user_annotations.delay(user.userid)
示例#2
0
文件: nipsa.py 项目: gnott/h
    def unflag(self, user):
        """
        Remove the NIPSA flag for a user.

        If the user isn't NIPSA'd then nothing will happen (but a
        "remove_nipsa" message for the user will still be published to the
        queue).
        """
        user.nipsa = False
        reindex_user_annotations.delay(user.userid)
示例#3
0
文件: nipsa.py 项目: wantongtang/h
    def flag(self, user):
        """
        Add a NIPSA flag for a user.

        Add the given user's ID to the list of NIPSA'd user IDs. If the user
        is already NIPSA'd then nothing will happen (but an "add_nipsa"
        message for the user will still be published to the queue).
        """
        user.nipsa = True
        reindex_user_annotations.delay(user.userid)
示例#4
0
文件: nipsa.py 项目: gnott/h
    def flag(self, user):
        """
        Add a NIPSA flag for a user.

        Add the given user's ID to the list of NIPSA'd user IDs. If the user
        is already NIPSA'd then nothing will happen (but an "add_nipsa"
        message for the user will still be published to the queue).
        """
        user.nipsa = True
        reindex_user_annotations.delay(user.userid)