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())
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())
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())
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())