예제 #1
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self._conf.getAbstractMgr().isActive(
     ) or not self._conf.hasEnabledSection("cfa"):
         raise MaKaCError(
             _("The Call For Abstracts was disabled by the conference managers"
               ))
예제 #2
0
 def _checkParams( self, params ):
     RHConferenceBaseDisplay._checkParams( self, params )
     self._abstractIds = normaliseListParam( params.get("abstracts", []) )
     self._abstracts = []
     abMgr = self._conf.getAbstractMgr()
     for id in self._abstractIds:
         if abMgr.getAbstractById(id).canView(self._aw):
             self._abstracts.append(abMgr.getAbstractById(id))
예제 #3
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._abstractIds = normaliseListParam(params.get("abstracts", []))
     self._abstracts = []
     abMgr = self._conf.getAbstractMgr()
     for id in self._abstractIds:
         if abMgr.getAbstractById(id).canView(self._aw):
             self._abstracts.append(abMgr.getAbstractById(id))
예제 #4
0
파일: display.py 프로젝트: stomanin/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.event = self._conf
예제 #5
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams( self, params )
     self.spkUniqueId = params.get("spkId","")
예제 #6
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.page = EventPage.get_one(request.view_args['page_id'])
예제 #7
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.spkUniqueId = params.get("spkId", "")
예제 #8
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.agreement = Agreement.find_one(id=request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
예제 #9
0
파일: display.py 프로젝트: florv/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.layout = request.args.get('layout')
     if not self.layout:
         self.layout = request.args.get('ttLyt')
예제 #10
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'], is_deleted=False)
예제 #11
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._templateId = params.get('reviewingTemplateId')
예제 #12
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self.agreement.uuid != request.view_args['uuid']:
         raise Forbidden(_("The URL for this agreement is invalid."))
     if self.agreement.user:
         self._checkSessionUser()
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._templateId = params.get('reviewingTemplateId')
예제 #14
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     SpecificFolderMixin._checkParams(self)
예제 #15
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._authorId = params.get("authorId", "").strip()
예제 #16
0
 def _checkProtection(self):
     if self._target.hasEnabledSection("paperReviewing"):
         RHConferenceBaseDisplay._checkProtection(self)
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
예제 #17
0
파일: images.py 프로젝트: indico/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     image_id = request.view_args["image_id"]
     self.image = ImageFile.get_one(image_id)
예제 #18
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self.agreement.uuid != request.view_args['uuid']:
         raise AccessError()
     if self.agreement.user:
         self._checkSessionUser()
예제 #19
0
 def _checkParams( self, params ):
     RHConferenceBaseDisplay._checkParams( self, params )
     self._authorId = params.get( "authorId", "" ).strip()
예제 #20
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.list_generator = ContributionDisplayListGenerator(event=self.event_new)
예제 #21
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.layout = request.args.get('layout')
     if not self.layout:
         self.layout = request.args.get('ttLyt')
예제 #22
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.entry = self.event_new.timetable_entries.filter_by(
         id=request.view_args['entry_id']).first_or_404()
예제 #23
0
 def _checkProtection( self ):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self._conf.getAbstractMgr().isActive() or not self._conf.hasEnabledSection("cfa"):
         raise MaKaCError( _("The Call For Abstracts was disabled by the conference managers"))
예제 #24
0
파일: display.py 프로젝트: pmart123/indico
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
예제 #25
0
 def _checkProtection( self ):
     RHConferenceBaseDisplay._checkProtection(self)
     if self._regForm.isMandatoryAccount() and self._getUser() == None:
         self._redirect( self._getLoginURL() )
         self._doProcess = False
예제 #26
0
 def _checkParams( self, params ):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._evaluation = self._conf.getEvaluation()
예제 #27
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
예제 #28
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.folder.can_access(session.user):
         raise Forbidden
예제 #29
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self._regForm.isMandatoryAccount() and self._getUser() == None:
         self._redirect(self._getLoginURL())
         self._doProcess = False
예제 #30
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._evaluation = self._conf.getEvaluation()
예제 #31
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
예제 #32
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.authKey = params['authKey']
예제 #33
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.session = Session.get_one(request.view_args['session_id'], is_deleted=False)
예제 #34
0
파일: display.py 프로젝트: hennogous/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.event = self._conf
예제 #35
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event_new)
예제 #36
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.agreement = Agreement.find_one(id=request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
예제 #37
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
예제 #38
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.contrib.can_access(session.user):
         raise Forbidden
예제 #39
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new):
         self._forbidden_if_not_admin()
예제 #40
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new):
         self._forbidden_if_not_admin()
예제 #41
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.authKey = params['authKey']
예제 #42
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._regForm = self._conf.getRegistrationForm()
예제 #43
0
 def _getLoginURL(self):
     return RHConferenceBaseDisplay._getLoginURL(
         self, urlHandlers.UHConfEvaluationDisplay.getURL(self._conf))
예제 #44
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
예제 #45
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     # Only let event managers access the management versions.
     if self.management and not self.event_new.can_manage(session.user):
         raise Forbidden
예제 #46
0
 def _checkParams( self, params ):
     RHConferenceBaseDisplay._checkParams(self, params)
     self._regForm = self._conf.getRegistrationForm()
예제 #47
0
 def _checkProtection(self):
     if self._target.hasEnabledSection("paperReviewing"):
         RHConferenceBaseDisplay._checkProtection(self)
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
예제 #48
0
파일: display.py 프로젝트: florv/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.entry = self.event_new.timetable_entries.filter_by(id=request.view_args['entry_id']).first_or_404()
예제 #49
0
파일: display.py 프로젝트: fph/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.reporter = ContributionDisplayReporter(event=self.event_new)
예제 #50
0
파일: display.py 프로젝트: pmart123/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.session = Session.get_one(request.view_args['session_id'],
                                    is_deleted=False)
예제 #51
0
파일: rh.py 프로젝트: Ictp/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
예제 #52
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self.agreement.uuid != request.view_args['uuid']:
         raise Forbidden(_("The URL for this agreement is invalid."))
     if self.agreement.user:
         self._checkSessionUser()
예제 #53
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     SpecificFolderMixin._checkParams(self)
예제 #54
0
 def _getLoginURL(self):
     return RHConferenceBaseDisplay._getLoginURL(self, urlHandlers.UHConfEvaluationDisplay.getURL(self._conf))
예제 #55
0
파일: display.py 프로젝트: stomanin/indico
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.reporter = ContributionDisplayReporter(event=self.event_new)