本文整理汇总了Python中MaKaC.webinterface.user.UserModificationBase._checkParams方法的典型用法代码示例。如果您正苦于以下问题:Python UserModificationBase._checkParams方法的具体用法?Python UserModificationBase._checkParams怎么用?Python UserModificationBase._checkParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.webinterface.user.UserModificationBase
的用法示例。
在下文中一共展示了UserModificationBase._checkParams方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _checkParams
# 需要导入模块: from MaKaC.webinterface.user import UserModificationBase [as 别名]
# 或者: from MaKaC.webinterface.user.UserModificationBase import _checkParams [as 别名]
def _checkParams(self):
UserModificationBase._checkParams(self)
ConferenceReviewingBase._checkParams(self)
if self._params.has_key('contributions'):
pm = ParameterManager(self._params)
contributionsIds = pm.extract("contributions", pType=list, allowEmpty=False)
self._contributions = [self._conf.getContributionById(contributionId) for contributionId in contributionsIds]
else:
raise ServiceError("ERR-REV2",_("List of contribution ids not set"))
示例2: _checkParams
# 需要导入模块: from MaKaC.webinterface.user import UserModificationBase [as 别名]
# 或者: from MaKaC.webinterface.user.UserModificationBase import _checkParams [as 别名]
def _checkParams(self):
UserModificationBase._checkParams(self)
ConferenceReviewingBase._checkParams(self)
if self._params.has_key("contributions"):
pm = ParameterManager(self._params)
contributionsIds = {int(c) for c in pm.extract("contributions", pType=list, allowEmpty=False)}
self._contributions = [contrib for contrib in self._event.contributions if contrib.id in contributionsIds]
else:
raise ServiceError("ERR-REV2", _("List of contribution ids not set"))
示例3: _checkParams
# 需要导入模块: from MaKaC.webinterface.user import UserModificationBase [as 别名]
# 或者: from MaKaC.webinterface.user.UserModificationBase import _checkParams [as 别名]
def _checkParams(self):
CollaborationChangePluginManagersBase._checkParams(self)
UserModificationBase._checkParams(self)
示例4: _checkParams
# 需要导入模块: from MaKaC.webinterface.user import UserModificationBase [as 别名]
# 或者: from MaKaC.webinterface.user.UserModificationBase import _checkParams [as 别名]
def _checkParams(self):
PluginOptionsBase._checkParams(self)
UserModificationBase._checkParams(self)