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