コード例 #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)