geholimportapp / conf.py

"""
Some constant values used throughout the application
"""




# The date of the monday in the first week of the gehol calendar. This will be changed once a year.
FIRST_MONDAY = "19/09/2011"

# the weekspans of the various periods in the academic year
ALL_YEAR_WEEKSPAN = "1-36"
Q1_WEEKSPAN = "1-14"
Q2_WEEKSPAN = "21-36"
JANUARY_EXAMS_WEEKSPAN = "17-19"
JUNE_EXAMS_WEEKSPAN = "38-40"
SEPTEMBER_EXAMS_WEEKSPAN = "48-51"


# There are 3 exam sessions. It's not useful to list them all year long.

CURRENT_EXAM_SESSION = None
EXAM_SESSION_WEEKSPANS = {'january':JANUARY_EXAMS_WEEKSPAN,
                          'june':JUNE_EXAMS_WEEKSPAN,
                        'september':SEPTEMBER_EXAMS_WEEKSPAN}


# A bunch of URLs and URL templates
GEHOL_FRONTEND_URL = 'scientia-web.ulb.ac.be'
SCIENTIA_BACKEND_HOST = "164.15.72.157:8081"
# params are steudentset id and weekspan
GEHOL_STUDENTSET_URL_TEMPLATE = "http://164.15.72.157:8081/Reporting/Individual;Student%%20Set%%20Groups;id;%s?&template=Ann%%E9e%%20d%%27%%E9tude&weeks=%s&days=1-6&periods=5-33&width=0&height=0"
# param is course mnemonic and weekspan
GEHOL_COURSE_URL_TEMPLATE = "http://164.15.72.157:8081/Reporting/Individual;Courses;name;%s?&days=1-6&height=0&width=0&periods=5-29&template=cours&weeks=%s"

# qrcode urls templates.
WEBCAL_BASE_URL = "webcal://geholimport.appspot.com%s"
BASE_URL = "http://geholimport.appspot.com"
COURSE_QRCODE_URL_TEMPLATE = "http://chart.apis.google.com/chart?cht=qr&chl="+BASE_URL+"/course/%s&chs=%dx%d"
STUDENTSET_QRCODE_URL_TEMPLATE = "http://chart.apis.google.com/chart?cht=qr&chl="+BASE_URL+"/student_set/m/%s&chs=%dx%d"



QRCODE_SAMPLE_URL = "https://twitter.com/oprah/status/1542224596"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.