本文整理汇总了Python中MaKaC.services.implementation.conference.ConferenceModifBase._checkParams方法的典型用法代码示例。如果您正苦于以下问题:Python ConferenceModifBase._checkParams方法的具体用法?Python ConferenceModifBase._checkParams怎么用?Python ConferenceModifBase._checkParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.services.implementation.conference.ConferenceModifBase
的用法示例。
在下文中一共展示了ConferenceModifBase._checkParams方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
pm = ParameterManager(self._params)
submitterId = pm.extract("submitterId", pType=str, allowEmpty=False)
abstractId = pm.extract("abstractId", pType=str, allowEmpty=False)
self._abstract = self._conf.getAbstractMgr().getAbstractById(abstractId)
self._submitter = user.AvatarHolder().getById(submitterId)
示例2: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
if "startDate" in self._params:
self._startDate = self._params["startDate"]
if "endDate" in self._params:
self._endDate = self._params["endDate"]
示例3: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
pm = ParameterManager(self._params)
ah = AvatarHolder()
userId = pm.extract("userId", pType=str, allowEmpty=False)
self._user = ah.getById(userId)
if self._user == None:
raise ServiceError("ERR-U0", _("User '%s' does not exist.") % userId)
示例4: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
self.uniqueIdList = self._params["uniqueIdList"]
self.emailToList = []
self.fromEmail = self._params["from"]
self.content = self._params["content"]
manager = self._conf.getCSBookingManager()
for uniqueId in self.uniqueIdList:
self.emailToList.extend(manager.getSpeakerEmailByUniqueId(uniqueId, self._aw.getUser()))
示例5: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
self._pm = ParameterManager(self._params)
self.uniqueIdList = self._pm.extract("uniqueIdList", list, False, [])
fromMail = self._pm.extract("from", dict, False, {})
self.fromEmail = fromMail['email']
self.fromName = fromMail['name']
self.content = self._pm.extract("content", str, False, "")
p_cc = self._pm.extract("cc", str, True, "").strip()
self.cc = setValidEmailSeparators(p_cc).split(',') if p_cc else []
self.emailToList = []
manager = Catalog.getIdx("cs_bookingmanager_conference").get(self._conf.getId())
for uniqueId in self.uniqueIdList:
spk = manager.getSpeakerWrapperByUniqueId(uniqueId)
if spk.getStatus() not in [SpeakerStatusEnum.SIGNED, SpeakerStatusEnum.FROMFILE]:
self.emailToList.extend(manager.getSpeakerEmailByUniqueId(uniqueId, self._aw.getUser()))
示例6: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
pm = ParameterManager(self._params)
self._limits = pm.extract("limits", pType=list, allowEmpty=False)
示例7: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
ReportNumberRemove._checkParams(self)
示例8: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self) #sets self._target = self._conf = the Conference object
self._checkCollaborationEnabled()
self._CSBookingManager = self._conf.getCSBookingManager()
示例9: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
self._CSManager = self._conf.getCSBookingManager()
示例10: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
self._confPaperReview = self._conf.getConfPaperReview()
self._confAbstractReview = self._conf.getConfAbstractReview()
示例11: _checkParams
# 需要导入模块: from MaKaC.services.implementation.conference import ConferenceModifBase [as 别名]
# 或者: from MaKaC.services.implementation.conference.ConferenceModifBase import _checkParams [as 别名]
def _checkParams(self):
ConferenceModifBase._checkParams(self)
self._confReview = self._conf.getConfReview()