本文整理汇总了Python中MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase类的典型用法代码示例。如果您正苦于以下问题:Python RHSubmitMaterialBase类的具体用法?Python RHSubmitMaterialBase怎么用?Python RHSubmitMaterialBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RHSubmitMaterialBase类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _checkProtection
def _checkProtection(self):
material, _ = self._getMaterial(forceCreate = False)
if self._target.canUserSubmit(self._aw.getUser()) \
and (not material or material.getReviewingState() < 3):
self._loggedIn = True
return
RHSubmitMaterialBase._checkProtection(self)
开发者ID:NIIF,项目名称:indico,代码行数:7,代码来源:subContribMod.py
示例2: RHSubmitMaterial
class RHSubmitMaterial(RHContributionMaterialSubmissionRightsBase):
def _checkProtection(self):
RHContributionMaterialSubmissionRightsBase._checkProtection(self)
if self._target.getReviewManager().getLastReview().isAuthorSubmitted():
raise MaKaCError("You have already marked your materials as submitted")
def _checkParams(self,params):
RHContributionDisplay._checkParams(self,params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial=RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
def _process(self):
wf=self.getWebFactory()
if wf is None:
url=urlHandlers.UHContributionDisplay.getURL(self._target)
p=contributions.WPSubmitMaterial
else:
url=urlHandlers.UHConferenceDisplay.getURL(self._target.getConference())
p=wf.getContribSubmitMaterial
r=self._rhSubmitMaterial._process(self, self._getRequestParams()) #, p)
if r is None:
self._redirect(url)
else:
return r
开发者ID:lukasnellen,项目名称:indico,代码行数:26,代码来源:contribDisplay.py
示例3: _checkProtection
def _checkProtection(self):
material, _ = self._getMaterial(forceCreate = False)
if self._target.canUserSubmit(self._aw.getUser()) \
and (not material or material.getReviewingState() < 3):
self._loggedIn = True
elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and self._target.getReviewManager().getLastReview().isAuthorSubmitted()):
RHSubmitMaterialBase._checkProtection(self)
else:
self._loggedIn = True
开发者ID:vstitches,项目名称:indico,代码行数:9,代码来源:contribMod.py
示例4: _checkProtection
def _checkProtection(self):
material, _ = self._getMaterial(forceCreate = False)
if self._target.canUserSubmit(self._aw.getUser()) \
and (not material or material.getReviewingState() < 3):
self._loggedIn = True
# status = 3 means the paper is under review (submitted but not reviewed)
# status = 2 means that the author has not yet submitted the material
elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and self._target.getReviewing().getReviewingState() in [2, 3]):
RHSubmitMaterialBase._checkProtection(self)
else:
self._loggedIn = True
开发者ID:VishrutMehta,项目名称:indico,代码行数:11,代码来源:contribMod.py
示例5: RHAddMaterial
class RHAddMaterial( RHCategModifBase ):
_uh = urlHandlers.UHCategoryAddMaterial
def _checkParams( self, params ):
RHCategModifBase._checkParams(self, params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial=RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
def _process( self ):
r=self._rhSubmitMaterial._process(self, self._getRequestParams())
if r is None:
self._redirect(self._uh.getURL(self._target))
return r
开发者ID:lukasnellen,项目名称:indico,代码行数:14,代码来源:categoryMod.py
示例6: RHMaterials
class RHMaterials(RHSubContribModifBase):
_uh = urlHandlers.UHSubContribModifMaterials
def _checkParams(self, params):
RHSubContribModifBase._checkParams(self, params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial = RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
def _process(self):
if self._target.getOwner().getOwner().isClosed():
p = subContributions.WPSubContributionModificationClosed(self, self._target)
return p.display()
p = subContributions.WPSubContributionModifMaterials(self, self._target)
return p.display(**self._getRequestParams())
开发者ID:lukasnellen,项目名称:indico,代码行数:16,代码来源:subContribMod.py
示例7: _process
def _process(self):
result = RHSubmitMaterialBase._process(self)
# if a Paper Reviewer uploads a paper, when the status is 'To be corrected', we must change the status to 'Submitted' again.
if (
self._target.getReviewing()
and self._target.getReviewing().getReviewingState() == 2
and RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False)
):
self._target.getReviewManager().getLastReview().setAuthorSubmitted(True)
return result
开发者ID:k3njiy,项目名称:indico,代码行数:10,代码来源:contribMod.py
示例8: RHMaterialsAdd
class RHMaterialsAdd(RHSubContribModifBase):
_uh = urlHandlers.UHSubContribModifAddMaterials
def _checkProtection(self):
material = self._rhSubmitMaterial._getMaterial()
if self._target.canUserSubmit(self._aw.getUser()) and material.getReviewingState() < 3:
return
RHSubContribModifBase._checkProtection(self)
def _checkParams(self, params):
RHSubContribModifBase._checkParams(self, params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial = RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
def _process(self):
if self._target.getConference().isClosed():
p = WPConferenceModificationClosed(self, self._target)
return p.display()
r = self._rhSubmitMaterial._process(self, self._getRequestParams())
if r is None:
self._redirect(self._uh.getURL(self._target))
return r
开发者ID:lukasnellen,项目名称:indico,代码行数:24,代码来源:subContribMod.py
示例9: RHSubmitMaterial
class RHSubmitMaterial(RHSubContributionDisplayBase):
def _checkProtection(self):
if not self._target.canModify( self.getAW() ) and not self._target.canUserSubmit( self.getAW().getUser() ):
if self._target.getModifKey() != "":
raise ModificationError()
if self._getUser() == None:
self._checkSessionUser()
else:
raise ModificationError()
#def _checkProtection(self):
# if self.getAW().getUser() is None:
# self._checkSessionUser()
# elif not self._target.canModify(self.getAW()):
# raise MaKaCError("you are not authorised to submit material for this subcontribution")
def _checkParams(self,params):
RHSubContributionDisplayBase._checkParams(self,params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial=RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
def _process(self):
wf=self.getWebFactory()
if wf is None:
url=urlHandlers.UHSubContributionDisplay.getURL(self._target)
p=subContributions.WPSubmitMaterial
else:
url=urlHandlers.UHConferenceDisplay.getURL(self._target.getConference())
p=wf.getSubContribSubmitMaterial
r=self._rhSubmitMaterial._process(self, self._getRequestParams(), p)
if r is None:
self._redirect(url)
else:
return r
开发者ID:lukasnellen,项目名称:indico,代码行数:36,代码来源:subContribDisplay.py
示例10: _checkParams
def _checkParams(self, params):
RHCategModifBase._checkParams(self, params)
RHSubmitMaterialBase._checkParams(self, params)
开发者ID:bubbas,项目名称:indico,代码行数:3,代码来源:categoryMod.py
示例11: __init__
def __init__(self, req):
RHCategModifBase.__init__(self, req)
RHSubmitMaterialBase.__init__(self)
开发者ID:bubbas,项目名称:indico,代码行数:3,代码来源:categoryMod.py
示例12: _checkParams
def _checkParams(self, params):
RHContribModifBaseSpecialSesCoordRights._checkParams(self, params)
RHSubmitMaterialBase._checkParams(self, params)
开发者ID:MichelCordeiro,项目名称:indico,代码行数:3,代码来源:contribMod.py
示例13: __init__
def __init__(self):
RHContribModifBaseSpecialSesCoordRights.__init__(self)
RHSubmitMaterialBase.__init__(self)
开发者ID:MichelCordeiro,项目名称:indico,代码行数:3,代码来源:contribMod.py
示例14: _checkParams
def _checkParams(self, params):
RHSessionModCoordinationBase._checkParams(self, params)
RHSubmitMaterialBase._checkParams(self, params)
开发者ID:arescope,项目名称:indico,代码行数:3,代码来源:sessionModif.py
示例15: __init__
def __init__(self, req):
RHSessionModCoordinationBase.__init__(self, req)
RHSubmitMaterialBase.__init__(self)
开发者ID:arescope,项目名称:indico,代码行数:3,代码来源:sessionModif.py
示例16: _checkParams
def _checkParams(self, params):
RHSubContribModifBase._checkParams(self, params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial = RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
开发者ID:lukasnellen,项目名称:indico,代码行数:5,代码来源:subContribMod.py
示例17: _checkParams
def _checkParams(self,params):
RHContributionDisplay._checkParams(self,params)
if not hasattr(self, "_rhSubmitMaterial"):
self._rhSubmitMaterial=RHSubmitMaterialBase(self._target, self)
self._rhSubmitMaterial._checkParams(params)
开发者ID:lukasnellen,项目名称:indico,代码行数:5,代码来源:contribDisplay.py
示例18: _checkParams
def _checkParams(self, params):
RHSubContribModifBase._checkParams(self, params)
RHSubmitMaterialBase._checkParams(self, params)
开发者ID:NIIF,项目名称:indico,代码行数:3,代码来源:subContribMod.py
示例19: __init__
def __init__(self):
RHSubContribModifBase.__init__(self)
RHSubmitMaterialBase.__init__(self)
开发者ID:NIIF,项目名称:indico,代码行数:3,代码来源:subContribMod.py
注:本文中的MaKaC.webinterface.rh.conferenceBase.RHSubmitMaterialBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论