sobjects/supervising.py
changeset 2650 18aec79ec3a3
parent 2649 5d4a943695d1
child 2812 b260ed87a650
child 2920 64322aa83a1d
child 3131 596f893451c0
equal deleted inserted replaced
2649:5d4a943695d1 2650:18aec79ec3a3
   220 class SupervisionMailOp(SendMailOp):
   220 class SupervisionMailOp(SendMailOp):
   221     """special send email operation which should be done only once for a bunch
   221     """special send email operation which should be done only once for a bunch
   222     of changes
   222     of changes
   223     """
   223     """
   224     def _get_view(self):
   224     def _get_view(self):
   225         return self.session.vreg.select('components', 'supervision_notif',
   225         return self.session.vreg['components'].select('supervision_notif',
   226                                         self.session)
   226                                                       self.session)
   227 
   227 
   228     def _prepare_email(self):
   228     def _prepare_email(self):
   229         session = self.session
   229         session = self.session
   230         config = session.vreg.config
   230         config = session.vreg.config
   231         uinfo = {'email': config['sender-addr'],
   231         uinfo = {'email': config['sender-addr'],