Exemple #1
0
    def setup(self):
        super(AristotleChannelsSignalProcessor, self).setup()

        from aristotle_mdr.models import ReviewRequest, concept_visibility_updated

        post_save.connect(self.update_visibility_review_request, sender=ReviewRequest)
        m2m_changed.connect(self.update_visibility_review_request, sender=ReviewRequest.concepts.through)
        concept_visibility_updated.connect(self.handle_concept_recache)
Exemple #2
0
 def setup(self):
     from aristotle_mdr.models import _concept, Workgroup, ReviewRequest, concept_visibility_updated
     post_save.connect(self.handle_concept_save)
     # post_revision_commit.connect(self.handle_concept_revision)
     pre_delete.connect(self.handle_concept_delete, sender=_concept)
     post_save.connect(self.update_visibility_review_request, sender=ReviewRequest)
     m2m_changed.connect(self.update_visibility_review_request, sender=ReviewRequest.concepts.through)
     concept_visibility_updated.connect(self.handle_concept_recache)
     super(AristotleSignalProcessor, self).setup()
Exemple #3
0
    def setup(self):
        super().setup()

        from aristotle_mdr.models import ReviewRequest, concept_visibility_updated

        post_save.connect(self.update_visibility_review_request,
                          sender=ReviewRequest)
        m2m_changed.connect(self.update_visibility_review_request,
                            sender=ReviewRequest.concepts.through)
        concept_visibility_updated.connect(self.handle_concept_recache)
Exemple #4
0
 def setup(self):
     from aristotle_mdr.models import _concept, Workgroup, ReviewRequest, concept_visibility_updated
     post_save.connect(self.handle_concept_save)
     # post_revision_commit.connect(self.handle_concept_revision)
     pre_delete.connect(self.handle_concept_delete, sender=_concept)
     post_save.connect(self.update_visibility_review_request,
                       sender=ReviewRequest)
     m2m_changed.connect(self.update_visibility_review_request,
                         sender=ReviewRequest.concepts.through)
     concept_visibility_updated.connect(self.handle_concept_recache)
     super(AristotleSignalProcessor, self).setup()
 def setup(self):
     from aristotle_mdr.models import _concept, concept_visibility_updated
     from aristotle_mdr.contrib.reviews.models import ReviewRequest
     from aristotle_mdr.contrib.help.models import HelpPage, ConceptHelp
     post_save.connect(self.handle_concept_save)
     # post_revision_commit.connect(self.handle_concept_revision)
     pre_delete.connect(self.handle_concept_delete, sender=_concept)
     post_save.connect(self.update_visibility_review_request, sender=ReviewRequest)
     m2m_changed.connect(self.update_visibility_review_request, sender=ReviewRequest.concepts.through)
     concept_visibility_updated.connect(self.handle_concept_recache)
     post_save.connect(self.async_handle_save, sender=HelpPage)
     post_save.connect(self.async_handle_save, sender=ConceptHelp)
     super().setup()
 def setup(self):
     from aristotle_mdr.models import _concept, concept_visibility_updated
     from aristotle_mdr.contrib.reviews.models import ReviewRequest
     from aristotle_mdr.contrib.help.models import HelpPage, ConceptHelp
     post_save.connect(self.handle_concept_save)
     # post_revision_commit.connect(self.handle_concept_revision)
     pre_delete.connect(self.handle_concept_delete, sender=_concept)
     post_save.connect(self.update_visibility_review_request,
                       sender=ReviewRequest)
     m2m_changed.connect(self.update_visibility_review_request,
                         sender=ReviewRequest.concepts.through)
     concept_visibility_updated.connect(self.handle_concept_recache)
     post_save.connect(self.async_handle_save, sender=HelpPage)
     post_save.connect(self.async_handle_save, sender=ConceptHelp)
     super().setup()
Exemple #7
0
    def setup(self):
        """Connect django signals to this classes methods"""
        from aristotle_mdr.models import _concept, concept_visibility_updated
        from aristotle_mdr.contrib.reviews.models import ReviewRequest
        from aristotle_mdr.contrib.help.models import HelpPage, ConceptHelp
        from aristotle_mdr.contrib.publishing.models import PublicationRecord

        post_save.connect(self.handle_object_save)
        pre_delete.connect(self.handle_concept_delete, sender=_concept)
        post_save.connect(self.update_visibility_review_request, sender=ReviewRequest)
        m2m_changed.connect(self.update_visibility_review_request, sender=ReviewRequest.concepts.through)
        concept_visibility_updated.connect(self.handle_concept_recache)
        post_save.connect(self.async_handle_save, sender=HelpPage)
        post_save.connect(self.async_handle_save, sender=ConceptHelp)
        post_save.connect(self.item_published, sender=PublicationRecord)
        super().setup()