Exemplo n.º 1
0
 def _processIfActive(self):
     cfaMgr = self._conf.getAbstractMgr()
     #if the user is in the autorized list, don't check period
     if self._getUser() in cfaMgr.getAuthorizedSubmitterList():
         return self._processIfOpened()
     #if the submission period is not yet opened we show up a form informing
     #   about that.
     if timezoneUtils.nowutc() < cfaMgr.getStartSubmissionDate():
         #if the submission period is already closed we show up a form informing
         #   about that.
         p = abstracts.WPCFANotYetOpened(self, self._conf)
         return p.display()
     elif timezoneUtils.nowutc() > cfaMgr.getEndSubmissionDate():
         p = abstracts.WPCFAClosed(self, self._conf, False)
         return p.display()
     else:
         return self._processIfOpened()
Exemplo n.º 2
0
 def _processIfActive( self ):
     #We overload this method to alow modification after the CFA is closed if the modification deadline is after the submission deadline
     cfaMgr = self._conf.getAbstractMgr()
     modifDeadLine = cfaMgr.getModificationDeadline()
     if not modifDeadLine:
         modifDeadLine = cfaMgr.getEndSubmissionDate()
     #if the user is in the autorized list, don't check period
     if self._getUser() in cfaMgr.getAuthorizedSubmitterList():
         return self._processIfOpened()
     #if the submission period is not yet opened we show up a form informing
     #   about that.
     if timezoneUtils.nowutc() < cfaMgr.getStartSubmissionDate():
     #if the submission period is already closed we show up a form informing
     #   about that.
         p = abstracts.WPCFANotYetOpened( self, self._conf )
         return p.display()
     #elif timezoneUtils.nowutc() > cfaMgr.getEndSubmissionDate() :
     elif timezoneUtils.nowutc() > cfaMgr.getEndSubmissionDate() and timezoneUtils.nowutc() > modifDeadLine:
         p = abstracts.WPCFAClosed( self, self._conf )
         return p.display()
     else:
         return self._processIfOpened()