本文整理汇总了Python中MaKaC.services.implementation.conference.ConferenceModifBase._checkProtection方法的典型用法代码示例。如果您正苦于以下问题:Python ConferenceModifBase._checkProtection方法的具体用法?Python ConferenceModifBase._checkProtection怎么用?Python ConferenceModifBase._checkProtection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.services.implementation.conference.ConferenceModifBase
的用法示例。
在下文中一共展示了ConferenceModifBase._checkProtection方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _checkCanManagePlugin
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkProtection [as 别名]
def _checkCanManagePlugin(self, plugin):
isAdminOnlyPlugin = CollaborationTools.isAdminOnlyPlugin(plugin)
hasAdminRights = RCCollaborationAdmin.hasRights(self._getUser()) or RCCollaborationPluginAdmin.hasRights(self._getUser(), [plugin])
if not hasAdminRights and isAdminOnlyPlugin:
raise CollaborationException(_("Cannot acces service of admin-only plugin if user is not admin, for event: ") + str(self._conf.getId()) + _(" with the service ") + str(self.__class__) )
elif not hasAdminRights and not RCVideoServicesManager.hasRights(self._getUser(), self._conf, [plugin]):
#we check if it's an event creator / manager (this will call ConferenceModifBase._checkProtection)
ConferenceModifBase._checkProtection(self)
示例2: _checkProtection
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkProtection [as 别名]
def _checkProtection(self):
if self._target.getConference().hasEnabledSection("paperReviewing"):
ConferenceModifBase._checkProtection(self)
else:
raise ServiceError("ERR-REV1a",_("Paper Reviewing is not active for this conference"))
示例3: _checkProtection
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkProtection [as 别名]
def _checkProtection(self):
if not self._target.canManageRegistration(self.getAW().getUser()):
ConferenceModifBase._checkProtection(self)