-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathfskintra.py
More file actions
executable file
·35 lines (26 loc) · 828 Bytes
/
Copy pathfskintra.py
File metadata and controls
executable file
·35 lines (26 loc) · 828 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
34
35
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import skoleintra.config
import skoleintra.schildren
import skoleintra.snotifications
import skoleintra.pgFrontpage
import skoleintra.pgContacts
import skoleintra.pgDialogue
import skoleintra.pgDocuments
import skoleintra.pgHomework
import skoleintra.pgPhotos
import skoleintra.pgSignup
import skoleintra.pgWeekplans
def main(argv=None):
skoleintra.config.parseArgs(argv)
(full, state) = skoleintra.snotifications.checkForUpdates()
if not full:
return
cnames = skoleintra.schildren.getChildren()
# Sections/pages are considered in the order they were imported
for sf in skoleintra.config.PAGE_SECTIONS:
sf.maybeRun(cnames)
# save updated state
skoleintra.snotifications.saveState(state)
if __name__ == '__main__':
main()