当前位置: 首页>>代码示例>>Python>>正文


Python RHSubmitMaterialBase._checkProtection方法代码示例

本文整理汇总了Python中MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase._checkProtection方法的典型用法代码示例。如果您正苦于以下问题:Python RHSubmitMaterialBase._checkProtection方法的具体用法?Python RHSubmitMaterialBase._checkProtection怎么用?Python RHSubmitMaterialBase._checkProtection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase的用法示例。


在下文中一共展示了RHSubmitMaterialBase._checkProtection方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _checkProtection

# 需要导入模块: from MaKaC.webinterface.rh.conferenceBase import RHSubmitMaterialBase [as 别名]
# 或者: from MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase import _checkProtection [as 别名]
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
         return
     RHSubmitMaterialBase._checkProtection(self)
开发者ID:NIIF,项目名称:indico,代码行数:9,代码来源:subContribMod.py

示例2: _checkProtection

# 需要导入模块: from MaKaC.webinterface.rh.conferenceBase import RHSubmitMaterialBase [as 别名]
# 或者: from MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase import _checkProtection [as 别名]
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and self._target.getReviewManager().getLastReview().isAuthorSubmitted()):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True
开发者ID:vstitches,项目名称:indico,代码行数:11,代码来源:contribMod.py

示例3: _checkProtection

# 需要导入模块: from MaKaC.webinterface.rh.conferenceBase import RHSubmitMaterialBase [as 别名]
# 或者: from MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase import _checkProtection [as 别名]
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     # status = 3 means the paper is under review (submitted but not reviewed)
     # status = 2 means that the author has not yet submitted the material
     elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and  self._target.getReviewing().getReviewingState() in [2, 3]):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True
开发者ID:VishrutMehta,项目名称:indico,代码行数:13,代码来源:contribMod.py


注:本文中的MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase._checkProtection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。