Ejemplo n.º 1
0
 def _process(self):
     if self._action:
         cType = self._abstract.getConference().getContribTypeById(self._typeId)
         self._abstract.accept(self._getUser(), self._track, cType, self._comments, self._session)
         self._notifyStatus(review.AbstractStatusAccepted(self._abstract, None, self._track, cType))
         self._redirect(urlHandlers.UHTrackAbstractModif.getURL( self._track, self._abstract ))
     else:
         p = tracks.WPTrackAbstractAccept(self, self._track, self._abstract)
         return p.display(**self._getRequestParams())
Ejemplo n.º 2
0
 def _process( self ):
     if self._accept:
         cType=self._conf.getContribTypeById(self._typeId)
         st=review.AbstractStatusAccepted(self._target,None,self._track,cType)
         wrapper=_AbstractWrapper(st)
         tpl=self._target.getOwner().getNotifTplForAbstract(wrapper)
         if self._doNotify and not self._warningShown and tpl is None:
             p=abstracts.WPModAcceptConfirmation(self,self._target)
             return p.display(track=self._trackId,comments=self._comments,type=self._typeId,session=self._sessionId)
         else:
             self._target.accept(self._getUser(),self._track,cType,self._comments,self._session)
             if self._doNotify:
                 n=EmailNotificator()
                 self._target.notify(n,self._getUser())
             self._redirect(urlHandlers.UHAbstractManagment.getURL(self._abstract))
     else:
         p = abstracts.WPAbstractManagmentAccept( self, self._target )
         return p.display( **self._getRequestParams() )