Source

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 = 'january'
EXAM_SESSION_WEEKSPANS = {'january':JANUARY_EXAMS_WEEKSPAN,
                          'june':JUNE_EXAMS_WEEKSPAN,
                        'september':SEPTEMBER_EXAMS_WEEKSPAN}


# A bunch of URLs which might change because what the hell
GEHOL_FRONTEND_URL = 'scientia-web.ulb.ac.be'
SCIENTIA_BACKEND_HOST = "164.15.72.157:8081"


# 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 = "http://www.computerweekly.com/PhotoGalleries/232923/19_20_Jet-pack-Thunderball-1965-Sean-Connery.JPG"
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.