Changeset 2b572f in indico
- Timestamp:
- 02/13/12 15:30:00 (15 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 75eb7c5, 32ede2
- Parents:
- b99720
- git-author:
- Jose Benito <jose.benito.gonzalez@…> (02/13/12 15:28:45)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (02/13/12 15:30:00)
- File:
-
- 1 edited
-
indico/MaKaC/webinterface/pages/conferences.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/pages/conferences.py
r3a480c r2b572f 78 78 from indico.modules import ModuleHolder 79 79 from MaKaC.paperReviewing import ConferencePaperReview as CPR 80 from MaKaC.conference import Minutes 80 from MaKaC.conference import Minutes, Session, Contribution 81 81 from MaKaC.common.Configuration import Config 82 82 from MaKaC.common.utils import formatDateTime … … 1043 1043 1044 1044 timezoneUtil = DisplayTZ(accessWrapper, conf) 1045 t imezone= timezoneUtil.getDisplayTZ()1046 vars['startDate'] = conf.getAdjustedStartDate(t imezone)1047 vars['endDate'] = conf.getAdjustedEndDate(t imezone)1048 vars['timezone'] = t imezone1045 tz = timezoneUtil.getDisplayTZ() 1046 vars['startDate'] = conf.getAdjustedStartDate(tz) 1047 vars['endDate'] = conf.getAdjustedEndDate(tz) 1048 vars['timezone'] = tz 1049 1049 1050 1050 if conf.getParticipation().displayParticipantList() : … … 1087 1087 vars['entries'] = [] 1088 1088 confSchedule = conf.getSchedule() 1089 entrylist = confSchedule.getEntries() 1089 showSession = self._params.get("showSession","") 1090 detailLevel = self._params.get("detailLevel", "contribution") 1091 showDate = self._params.get("showDate", "all") 1092 # Filter by day 1093 if showDate == "all": 1094 entrylist = confSchedule.getEntries() 1095 else: 1096 entrylist = confSchedule.getEntriesOnDay(timezone(tz).localize(stringToDate(showDate))) 1097 # Check entries filters and access rights 1090 1098 for entry in entrylist: 1099 sessionCand = entry.getOwner().getOwner() 1100 # Filter by session 1101 if isinstance(sessionCand, Session) and (showSession != "all" and sessionCand.getId() != showSession): 1102 continue 1103 # Hide/Show contributions 1104 if isinstance(entry.getOwner(), Contribution) and detailLevel != "contribution": 1105 continue 1091 1106 if entry.getOwner().canView(accessWrapper): 1092 1107 if type(entry) is schedule.BreakTimeSchEntry:
Note: See TracChangeset
for help on using the changeset viewer.
