def _process(self): if self._action: self._abstract.reject(self._getUser(), self._comments) self._notifyStatus(review.AbstractStatusRejected(self._abstract, None, None)) self._redirect(urlHandlers.UHTrackAbstractModif.getURL( self._track, self._abstract )) else: p = tracks.WPTrackAbstractReject(self, self._track, self._abstract) return p.display(**self._getRequestParams())
def _process( self ): if self._reject: st=review.AbstractStatusRejected(self._target,None,None) wrapper=_AbstractWrapper(st) tpl=self._target.getOwner().getNotifTplForAbstract(wrapper) if self._doNotify and not self._warningShown and tpl is None: p=abstracts.WPModRejectConfirmation(self,self._target) return p.display(comments=self._comments) else: self._target.reject(self._getUser(), self._comments) if self._doNotify: n=EmailNotificator() self._target.notify(n,self._getUser()) self._redirect(urlHandlers.UHAbstractManagment.getURL(self._target)) else: p = abstracts.WPAbstractManagmentReject( self, self._target ) return p.display( **self._getRequestParams() )