sobjects/supervising.py
branch3.5
changeset 3184 613064b49331
parent 2920 64322aa83a1d
parent 3131 596f893451c0
child 3163 edfe43ceaa35
child 4212 ab6573088b4a
equal deleted inserted replaced
3177:e7ae807554d9 3184:613064b49331
    21     events = ('before_add_relation', 'before_delete_relation',
    21     events = ('before_add_relation', 'before_delete_relation',
    22               'after_add_entity', 'before_update_entity')
    22               'after_add_entity', 'before_update_entity')
    23     accepts = ('Any',)
    23     accepts = ('Any',)
    24 
    24 
    25     def call(self, session, *args):
    25     def call(self, session, *args):
       
    26         if session.is_super_session or session.repo.config.repairing:
       
    27             return # ignore changes triggered by hooks or maintainance shell
    26         dest = self.config['supervising-addrs']
    28         dest = self.config['supervising-addrs']
    27         if not dest: # no supervisors, don't do this for nothing...
    29         if not dest: # no supervisors, don't do this for nothing...
    28             return
    30             return
    29         self.session = session
    31         self.session = session
    30         if self._call(*args):
    32         if self._call(*args):