def __call__(self):
        if IHasStopWords.providedBy(self.context):
            noLongerProvides(self.context, IHasStopWords)
            self.context.reindexObject(idxs=('object_provides', ))

            api.portal.show_message(
                message=_(
                    u'stop_words_interface_removed_message',
                    default=u'The object no longer has an alert on it.'
                ),
                request=self.request,
            )

        return self.request.response.redirect(
            self.context.absolute_url(),
        )
 def summary(self):
     return _(
         u'contentrules_text_alert_condition_summary',
         default=u'Provide a stop words list, one per line, or leave it '
                 u'empty to use the shared one (registry based).'
     )