* updated files according to INCR-265 * fixed docstring and line-length problems from quality test * Revert "fixed docstring and line-length problems from quality test" This reverts commit d050f55a4ecfaa38f46b80ec4bb85ff399a79a8c. * fixed errors reported in quality report * had error, fixed it * reversed change * fixed over/under indentation, and added line to import.py that Ned had suggested * tried disabling pylint for this line * testing new email * testing email in different window * re-added symlink and docstring
28 lines
783 B
Python
28 lines
783 B
Python
"""
|
|
Dump the course_ids available to the lms.
|
|
|
|
Output is UTF-8 encoded by default.
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
from textwrap import dedent
|
|
|
|
from django.core.management.base import BaseCommand
|
|
from six import text_type
|
|
|
|
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = dedent(__doc__).strip()
|
|
|
|
def add_arguments(self, parser):
|
|
parser.add_argument('--modulestore',
|
|
default='default',
|
|
help='name of the modulestore to use')
|
|
|
|
def handle(self, *args, **options):
|
|
output = '\n'.join(text_type(course_overview.id) for course_overview in CourseOverview.get_all_courses()) + '\n'
|
|
|
|
return output
|