Commit fa3734b6 by Bridger Maxwell

Merge remote-tracking branch 'origin/master' into feature/bridger/new_wiki

Conflicts:
	repo-requirements.txt
parents c0c23baa b29e547d
...@@ -6,3 +6,4 @@ gfortran ...@@ -6,3 +6,4 @@ gfortran
python python
yuicompressor yuicompressor
node node
graphviz
...@@ -105,7 +105,7 @@ NUMPY_VER="1.6.2" ...@@ -105,7 +105,7 @@ NUMPY_VER="1.6.2"
SCIPY_VER="0.10.1" SCIPY_VER="0.10.1"
BREW_FILE="$BASE/mitx/brew-formulas.txt" BREW_FILE="$BASE/mitx/brew-formulas.txt"
LOG="/var/tmp/install-$(date +%Y%m%d-%H%M%S).log" LOG="/var/tmp/install-$(date +%Y%m%d-%H%M%S).log"
APT_PKGS="curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript" APT_PKGS="curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz"
if [[ $EUID -eq 0 ]]; then if [[ $EUID -eq 0 ]]; then
error "This script should not be run using sudo or as the root user" error "This script should not be run using sudo or as the root user"
......
...@@ -155,8 +155,18 @@ def progress_summary(student, course, grader, student_module_cache): ...@@ -155,8 +155,18 @@ def progress_summary(student, course, grader, student_module_cache):
chapters = [] chapters = []
# Don't include chapters that aren't displayable (e.g. due to error) # Don't include chapters that aren't displayable (e.g. due to error)
for c in course.get_display_items(): for c in course.get_display_items():
# Skip if the chapter is hidden
hidden = c.metadata.get('hide_from_toc','false')
if hidden.lower() == 'true':
continue
sections = [] sections = []
for s in c.get_display_items(): for s in c.get_display_items():
# Skip if the section is hidden
hidden = s.metadata.get('hide_from_toc','false')
if hidden.lower() == 'true':
continue
# Same for sections # Same for sections
graded = s.metadata.get('graded', False) graded = s.metadata.get('graded', False)
scores = [] scores = []
......
...@@ -84,11 +84,17 @@ DATABASES = { ...@@ -84,11 +84,17 @@ DATABASES = {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': ENV_ROOT / "db" / "course1.db", 'NAME': ENV_ROOT / "db" / "course1.db",
}, },
'edx/full/6.002_Spring_2012': { 'edx/full/6.002_Spring_2012': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': ENV_ROOT / "db" / "course2.db", 'NAME': ENV_ROOT / "db" / "course2.db",
} },
'edX/toy/TT_2012_Fall': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ENV_ROOT / "db" / "course3.db",
},
} }
CACHES = { CACHES = {
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
<div id="course-errors"> <div id="course-errors">
<ul> <ul>
% for (msg, err) in course_errors: % for (msg, err) in course_errors:
<li>${msg} <li>${msg | h}
<ul><li><pre>${err}</pre></li></ul> <ul><li><pre>${err | h}</pre></li></ul>
</li> </li>
% endfor % endfor
</ul> </ul>
......
...@@ -11,7 +11,6 @@ python-memcached ...@@ -11,7 +11,6 @@ python-memcached
python-openid python-openid
path.py path.py
django_debug_toolbar django_debug_toolbar
django-staticfiles>=1.2.1
fs fs
beautifulsoup beautifulsoup
beautifulsoup4 beautifulsoup4
...@@ -43,4 +42,5 @@ django-ses ...@@ -43,4 +42,5 @@ django-ses
django-storages django-storages
django-threaded-multihost django-threaded-multihost
django-sekizai<0.7 django-sekizai<0.7
networkx
-r repo-requirements.txt -r repo-requirements.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment