equal
deleted
inserted
replaced
598 self.repo.close(self._admin_session.sessionid) |
598 self.repo.close(self._admin_session.sessionid) |
599 self._admin_session = None |
599 self._admin_session = None |
600 while self._cleanups: |
600 while self._cleanups: |
601 cleanup, args, kwargs = self._cleanups.pop(-1) |
601 cleanup, args, kwargs = self._cleanups.pop(-1) |
602 cleanup(*args, **kwargs) |
602 cleanup(*args, **kwargs) |
|
603 self.repo.turn_repo_off() |
603 |
604 |
604 def _patch_SendMailOp(self): |
605 def _patch_SendMailOp(self): |
605 # monkey patch send mail operation so emails are sent synchronously |
606 # monkey patch send mail operation so emails are sent synchronously |
606 _old_mail_postcommit_event = SendMailOp.postcommit_event |
607 _old_mail_postcommit_event = SendMailOp.postcommit_event |
607 SendMailOp.postcommit_event = SendMailOp.sendmails |
608 SendMailOp.postcommit_event = SendMailOp.sendmails |