コード例 #1
0
ファイル: display.py プロジェクト: imfht/flaskapps
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.registration = (Registration.query
                          .filter(Registration.id == request.view_args['registration_id'],
                                  ~Registration.is_deleted,
                                  ~RegistrationForm.is_deleted)
                          .join(Registration.registration_form)
                          .options(load_only('id', 'registration_form_id', 'first_name', 'last_name'),
                                   lazyload('*'),
                                   joinedload('registration_form').load_only('id', 'event_id'),
                                   joinedload('user').load_only('id', 'first_name', 'last_name', 'title',
                                                                'picture_source', 'picture_metadata', 'picture'))
                          .one())
コード例 #2
0
ファイル: display.py プロジェクト: zilehuda/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.timetable_layout = request.args.get('layout') or request.args.get(
         'ttLyt')
     self.theme, self.theme_override = get_theme(self.event,
                                                 request.args.get('view'))
コード例 #3
0
ファイル: display.py プロジェクト: DirkHoffmann/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contribs = self.event.contributions
     self.list_generator = ContributionDisplayListGenerator(event=self.event)
コード例 #4
0
ファイル: display.py プロジェクト: DirkHoffmann/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'], is_deleted=False)
コード例 #5
0
ファイル: event.py プロジェクト: zenny/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     SpecificFolderMixin._process_args(self)
コード例 #6
0
ファイル: display.py プロジェクト: www3838438/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contribs = self.event.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event)
コード例 #7
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.session = Session.get_or_404(request.view_args['session_id'],
                                       is_deleted=False)
コード例 #8
0
ファイル: controllers.py プロジェクト: indico/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.agreement = Agreement.get_one(request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
コード例 #9
0
ファイル: event.py プロジェクト: bkolobara/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     SpecificFolderMixin._process_args(self)
コード例 #10
0
ファイル: menu.py プロジェクト: DirkHoffmann/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.page = EventPage.get_one(request.view_args['page_id'])
コード例 #11
0
ファイル: display.py プロジェクト: sitedata/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.subcontrib = SubContribution.get_or_404(
         request.view_args['subcontrib_id'], is_deleted=False)
コード例 #12
0
ファイル: display.py プロジェクト: bkolobara/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.entry = self.event.timetable_entries.filter_by(id=request.view_args['entry_id']).first_or_404()
コード例 #13
0
ファイル: display.py プロジェクト: bkolobara/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.timetable_layout = request.args.get('layout') or request.args.get('ttLyt')
     self.theme, self.theme_override = get_theme(self.event, request.args.get('view'))
コード例 #14
0
ファイル: display.py プロジェクト: nop33/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.session = Session.get_one(request.view_args['session_id'], is_deleted=False)
コード例 #15
0
ファイル: display.py プロジェクト: zilehuda/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.entry = self.event.timetable_entries.filter_by(
         id=request.view_args['entry_id']).first_or_404()
コード例 #16
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.agreement = Agreement.get_one(request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
コード例 #17
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.force_overview = request.view_args.get('force_overview', False)
     self.theme_id, self.theme_override = get_theme(
         self.event, request.args.get('view'))
コード例 #18
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_or_404(image_id)
コード例 #19
0
ファイル: display.py プロジェクト: DirkHoffmann/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.force_overview = request.view_args.get('force_overview', False)
     self.theme_id, self.theme_override = get_theme(self.event, request.args.get('view'))
コード例 #20
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.page = EventPage.get_or_404(request.view_args['page_id'])
コード例 #21
0
ファイル: images.py プロジェクト: DirkHoffmann/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
コード例 #22
0
ファイル: display.py プロジェクト: www3838438/indico
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
コード例 #23
0
ファイル: event.py プロジェクト: imfht/flaskapps
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     DownloadAttachmentMixin._process_args(self)