Example #1
0
    def handle_noargs(self, **options):
        """handler function that removes all signal listeners
        then runs the job and finally restores the listerers
        """
        from openode.models import signals

        signal_data = signals.pop_all_db_signal_receivers()
        self.run_command(**options)
        signals.set_all_db_signal_receivers(signal_data)
 def handle_noargs(self, **options):
     signal_data = signals.pop_all_db_signal_receivers()
     self.run_command()
     signals.set_all_db_signal_receivers(signal_data)