diff --git a/brew-formulas.txt b/brew-formulas.txt index 61e3d33e3a..0aed9645d0 100644 --- a/brew-formulas.txt +++ b/brew-formulas.txt @@ -6,3 +6,4 @@ gfortran python yuicompressor node +graphviz diff --git a/create-dev-env.sh b/create-dev-env.sh index 7d8fdd2f17..96f212c9b5 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -105,7 +105,7 @@ NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" BREW_FILE="$BASE/mitx/brew-formulas.txt" 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 error "This script should not be run using sudo or as the root user" diff --git a/lms/djangoapps/courseware/grades.py b/lms/djangoapps/courseware/grades.py index 951c48822e..3d8d8b0ebe 100644 --- a/lms/djangoapps/courseware/grades.py +++ b/lms/djangoapps/courseware/grades.py @@ -155,8 +155,18 @@ def progress_summary(student, course, grader, student_module_cache): chapters = [] # Don't include chapters that aren't displayable (e.g. due to error) 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 = [] 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 graded = s.metadata.get('graded', False) scores = [] diff --git a/lms/envs/test.py b/lms/envs/test.py index 11534b3f4d..1ab3f550b8 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -84,11 +84,17 @@ DATABASES = { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ENV_ROOT / "db" / "course1.db", }, - + 'edx/full/6.002_Spring_2012': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ENV_ROOT / "db" / "course2.db", - } + }, + + 'edX/toy/TT_2012_Fall': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': ENV_ROOT / "db" / "course3.db", + }, + } CACHES = { diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index e1d6d11f37..b63ff89f5c 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -54,8 +54,8 @@
diff --git a/requirements.txt b/requirements.txt index 130934a8ef..7e69577073 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,6 @@ python-memcached python-openid path.py django_debug_toolbar -django-staticfiles>=1.2.1 fs beautifulsoup beautifulsoup4 @@ -43,4 +42,5 @@ django-ses django-storages django-threaded-multihost django-sekizai<0.7 +networkx -r repo-requirements.txt