server/hook.py
changeset 3418 7b49fa7e942d
parent 3396 fb261afd49cd
child 3423 d1356e008b19
equal deleted inserted replaced
3412:368c68ffb99e 3418:7b49fa7e942d
   430         previous = super(SendMailOp, self).register(session)
   430         previous = super(SendMailOp, self).register(session)
   431         if previous:
   431         if previous:
   432             self.to_send = previous.to_send + self.to_send
   432             self.to_send = previous.to_send + self.to_send
   433 
   433 
   434     def commit_event(self):
   434     def commit_event(self):
   435         self.repo.threaded_task(self.sendmails)
   435         self.session.repo.threaded_task(self.sendmails)
   436 
   436 
   437     def sendmails(self):
   437     def sendmails(self):
   438         self.config.sendmails(self.to_send)
   438         self.session.vreg.config.sendmails(self.to_send)
   439 
   439 
   440 
   440 
   441 class RQLPrecommitOperation(Operation):
   441 class RQLPrecommitOperation(Operation):
   442     def precommit_event(self):
   442     def precommit_event(self):
   443         execute = self.session.unsafe_execute
   443         execute = self.session.unsafe_execute