Ejemplo n.º 1
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if not RCPaperReviewManager.hasRights(self):
             RHContribModifBase._checkProtection(self)
     else:
         raise MaKaCError(
             _("Paper Reviewing is not active for this conference"))
Ejemplo n.º 2
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if self._target.getConference().getConfPaperReview().getChoice() == CPR.NO_REVIEWING:
             raise MaKaCError(_("Type of reviewing has not been chosen yet"))
         elif not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
Ejemplo n.º 3
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if self._target.getConference().getConfPaperReview().getChoice() == CPR.NO_REVIEWING:
             raise MaKaCError(_("Type of reviewing has not been chosen yet"))
         elif not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
Ejemplo n.º 4
0
    def _checkParams( self, params ):
        RHContribModifBase._checkParams( self, params )
        if not (self._target.getReviewManager().getLastReview().isAuthorSubmitted()):
            raise MaKaCError("You must wait until the author has submitted the materials")

        self._questions = params.get("questions")
        self._judgement = params.get("judgement")
        self._comments = params.get("comments")
Ejemplo n.º 5
0
    def _checkParams(self, params):
        RHContribModifBase._checkParams(self, params)
        if not (self._target.getReviewManager().getLastReview().
                isAuthorSubmitted()):
            raise MaKaCError(
                "You must wait until the author has submitted the materials")

        self._questions = params.get("questions")
        self._judgement = params.get("judgement")
        self._comments = params.get("comments")
Ejemplo n.º 6
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     try:
         self._day = int(params.get('sDay', 0))
         self._month = int(params.get('sMonth', 0))
         self._year = int(params.get('sYear', 0))
         if self._day == 0 or self._month == 0 or self._year == 0:
             raise MaKaCError("Please set the date correctly")
     except Exception:
         raise MaKaCError("Please set the date correctly")
Ejemplo n.º 7
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     try:
         self._day = int(params.get('sDay', 0))
         self._month = int(params.get('sMonth', 0))
         self._year = int(params.get('sYear', 0))
         if self._day == 0 or self._month == 0 or self._year == 0:
             raise MaKaCError("Please set the date correctly")
     except Exception:
         raise MaKaCError("Please set the date correctly")
Ejemplo n.º 8
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted():
         raise MaKaCError("The content assessment has been submitted")
Ejemplo n.º 9
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() and \
        not self._target.getConference().getConfPaperReview().getChoice() == CPR.LAYOUT_REVIEWING:
         raise MaKaCError("The editor assessment has been submitted")
Ejemplo n.º 10
0
 def _checkProtection(self):
     if not RCContributionReferee.hasRights(self):
         RHContribModifBase._checkProtection(self);
Ejemplo n.º 11
0
 def _checkParams( self, params ):
     RHContribModifBase._checkParams( self, params )
     self._reviewer = int(params.get("reviewerRemoveAssignSelection"))
     if self._reviewer == None:
         raise FormValuesError("No reviewer selected")
Ejemplo n.º 12
0
 def _checkProtection(self):
     if not RCContributionReferee.hasRights(self):
         RHContribModifBase._checkProtection(self)
Ejemplo n.º 13
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() and \
        not self._target.getConference().getConfPaperReview().getChoice() == CPR.LAYOUT_REVIEWING:
         raise MaKaCError("The editor assessment has been submitted")
Ejemplo n.º 14
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     self._referee = int(params.get("refereeAssignSelection"))
     if self._referee == None:
         raise FormValuesError("No referee selected")
Ejemplo n.º 15
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if self._target.getReviewManager().getLastReview().getRefereeJudgement(
     ).isSubmitted():
         raise MaKaCError("The content assessment has been submitted")
Ejemplo n.º 16
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if not (self._target.getReviewManager().getLastReview().
             isAuthorSubmitted()):
         raise MaKaCError(
             "You must wait until the author has submitted the materials")
Ejemplo n.º 17
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
Ejemplo n.º 18
0
 def _checkParams( self, params ):
     RHContribModifBase._checkParams( self, params )
     self._editor = int(params.get("editorAssignSelection"))
     if self._editor == None:
         raise FormValuesError("No editor selected")
Ejemplo n.º 19
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     if not (self._target.getReviewManager().getLastReview().isAuthorSubmitted()):
         raise MaKaCError("You must wait until the author has submitted the materials")
Ejemplo n.º 20
0
 def _checkParams(self, params):
     RHContribModifBase._checkParams(self, params)
     self._editor = int(params.get("editorAssignSelection"))
     if self._editor == None:
         raise FormValuesError("No editor selected")