sobjects/supervising.py
changeset 2058 7ef12c03447c
parent 1977 606923dff11b
child 2144 51c84d585456
equal deleted inserted replaced
2057:0a0cbccafcb5 2058:7ef12c03447c
   216 class SupervisionMailOp(SendMailOp):
   216 class SupervisionMailOp(SendMailOp):
   217     """special send email operation which should be done only once for a bunch
   217     """special send email operation which should be done only once for a bunch
   218     of changes
   218     of changes
   219     """
   219     """
   220     def _get_view(self):
   220     def _get_view(self):
   221         return self.session.vreg.select_component('supervision_notif',
   221         return self.session.vreg.select('components', 'supervision_notif',
   222                                                   self.session, None)
   222                                         self.session)
   223 
   223 
   224     def _prepare_email(self):
   224     def _prepare_email(self):
   225         session = self.session
   225         session = self.session
   226         config = session.vreg.config
   226         config = session.vreg.config
   227         uinfo = {'email': config['sender-addr'],
   227         uinfo = {'email': config['sender-addr'],