本文整理汇总了Python中MaKaC.webinterface.rh.contribMod.RHContribModifBase类的典型用法代码示例。如果您正苦于以下问题:Python RHContribModifBase类的具体用法?Python RHContribModifBase怎么用?Python RHContribModifBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RHContribModifBase类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _checkProtection
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"))
示例2: _checkParams
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")
示例3: _checkParams
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")