• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python conference.ConferenceModifBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中MaKaC.services.implementation.conference.ConferenceModifBase的典型用法代码示例。如果您正苦于以下问题:Python ConferenceModifBase类的具体用法?Python ConferenceModifBase怎么用?Python ConferenceModifBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: _checkParams

 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)
开发者ID:aninhalacerda,项目名称:indico,代码行数:7,代码来源:abstracts.py


示例2: _checkParams

    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"]
开发者ID:pferreir,项目名称:indico-backup,代码行数:7,代码来源:handlers.py


示例3: _checkParams

 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)
开发者ID:NIIF,项目名称:indico,代码行数:8,代码来源:abstracts.py


示例4: _checkCanManagePlugin

    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)
开发者ID:Ictp,项目名称:indico,代码行数:11,代码来源:services.py


示例5: _checkParams

    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()))
开发者ID:aninhalacerda,项目名称:indico,代码行数:12,代码来源:services.py


示例6: _checkParams

    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()))
开发者ID:Ictp,项目名称:indico,代码行数:17,代码来源:services.py


示例7: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._limits = pm.extract("limits", pType=list, allowEmpty=False)
开发者ID:cmorgia,项目名称:indicoaffiliation,代码行数:4,代码来源:services.py


示例8: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self) #sets self._target = self._conf = the Conference object
     self._checkCollaborationEnabled()
     self._CSBookingManager = self._conf.getCSBookingManager()
开发者ID:bubbas,项目名称:indico,代码行数:4,代码来源:collaboration.py


示例9: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     ReportNumberRemove._checkParams(self)
开发者ID:MichelCordeiro,项目名称:indico,代码行数:3,代码来源:reportNumbers.py


示例10: _checkProtection

 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"))
开发者ID:dbourillot,项目名称:indico,代码行数:5,代码来源:reviewing.py


示例11: _checkProtection

 def _checkProtection(self):
     if not self._target.canManageRegistration(self.getAW().getUser()):
         ConferenceModifBase._checkProtection(self)
开发者ID:svdoever,项目名称:indico,代码行数:3,代码来源:registration.py


示例12: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     self._CSManager = self._conf.getCSBookingManager()
开发者ID:pedrogaudencio,项目名称:indico,代码行数:3,代码来源:services.py


示例13: process

 def process(self):
     try:
         return ConferenceModifBase.process(self)
     except CollaborationException, e:
         raise CollaborationServiceException(e.getMessage(), str(e.getInner()))
开发者ID:Ictp,项目名称:indico,代码行数:5,代码来源:services.py


示例14: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     self._confPaperReview = self._conf.getConfPaperReview()
     self._confAbstractReview = self._conf.getConfAbstractReview()
开发者ID:dbourillot,项目名称:indico,代码行数:4,代码来源:reviewing.py


示例15: _checkParams

 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     self._confReview = self._conf.getConfReview()
开发者ID:davidmorrison,项目名称:indico,代码行数:3,代码来源:reviewing.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python json.decode函数代码示例发布时间:2022-05-24
下一篇:
Python base.ProtectedModificationService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap