-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogramsheet.py
More file actions
33 lines (26 loc) · 939 Bytes
/
Copy pathprogramsheet.py
File metadata and controls
33 lines (26 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 11 08:49:33 2023
@author: repa
"""
class WriteSheet:
def __init__(self, project):
self.pr = project
def eventList(self, fname):
book = self.pr.book
res = [
["day", "start", "end", "code", "room", "title",
"authors/chair"]]
for day in self.pr.getDays():
for event in day.events:
res.append([
event.printDay(), event.printStart(), event.printEnd(),
event.printEventCode(), event.venue,
event.printTitle(), event.printChair()])
if event.hasSession():
for item in event._session._items:
res.append([
None, None, None, None, None,
item.title, item.printAuthors()])
book.addSheet(fname, res)