Commit 0e0f2299 by cahrens

Add doc strings.

parent ce100bad
"""
Script for granting existing course instructors course creator privileges.
"""
from auth.authz import _grant_instructors_creator_access from auth.authz import _grant_instructors_creator_access
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
...@@ -6,9 +9,15 @@ from django.db.utils import IntegrityError ...@@ -6,9 +9,15 @@ from django.db.utils import IntegrityError
class Command(BaseCommand): class Command(BaseCommand):
"""
Script for granting existing course instructors course creator privileges.
"""
help = 'Grants all users with INSTRUCTOR role permission to create courses' help = 'Grants all users with INSTRUCTOR role permission to create courses'
def handle(self, *args, **options): def handle(self, *args, **options):
"""
The logic of the command.
"""
username = 'populate_creators_command' username = 'populate_creators_command'
email = 'grant+creator+access@edx.org' email = 'grant+creator+access@edx.org'
try: try:
......
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