예제 #1
0
 def unsubscribe(self, user=None):
     from allura.model import Mailbox
     if user is None: user = c.user
     Mailbox.unsubscribe(user_id=user._id,
                         project_id=self.app_config.project_id,
                         app_config_id=self.app_config._id,
                         artifact_index_id=self.index_id())
예제 #2
0
 def unsubscribe(self, user=None):
     from allura.model import Mailbox
     if user is None: user = c.user
     Mailbox.unsubscribe(
         user_id=user._id,
         project_id=self.app_config.project_id,
         app_config_id=self.app_config._id,
         artifact_index_id=self.index_id())
예제 #3
0
    def unsubscribe(self, user=None):
        """Unsubscribe ``user`` from the
        :class:`allura.model.notification.Mailbox` for this Artifact.

        :param user: :class:`allura.model.auth.User`

        If ``user`` is None, ``c.user`` will be unsubscribed.

        """
        from allura.model import Mailbox
        if user is None: user = c.user
        Mailbox.unsubscribe(
            user_id=user._id,
            project_id=self.app_config.project_id,
            app_config_id=self.app_config._id,
            artifact_index_id=self.index_id())
예제 #4
0
    def unsubscribe(self, user=None):
        """Unsubscribe ``user`` from the
        :class:`allura.model.notification.Mailbox` for this Artifact.

        :param user: :class:`allura.model.auth.User`

        If ``user`` is None, ``c.user`` will be unsubscribed.

        """
        from allura.model import Mailbox
        if user is None:
            user = c.user
        Mailbox.unsubscribe(user_id=user._id,
                            project_id=self.app_config.project_id,
                            app_config_id=self.app_config._id,
                            artifact_index_id=self.index_id())