From 0e0f22999d9c12236b5cee755a562f5cd3a2f81c Mon Sep 17 00:00:00 2001 From: cahrens Date: Thu, 27 Jun 2013 09:52:18 -0400 Subject: [PATCH] Add doc strings. --- .../management/commands/populate_creators.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cms/djangoapps/contentstore/management/commands/populate_creators.py b/cms/djangoapps/contentstore/management/commands/populate_creators.py index 28f360bacf..41c5d8194a 100644 --- a/cms/djangoapps/contentstore/management/commands/populate_creators.py +++ b/cms/djangoapps/contentstore/management/commands/populate_creators.py @@ -1,3 +1,6 @@ +""" +Script for granting existing course instructors course creator privileges. +""" from auth.authz import _grant_instructors_creator_access from django.core.management.base import BaseCommand @@ -6,9 +9,15 @@ from django.db.utils import IntegrityError class Command(BaseCommand): + """ + Script for granting existing course instructors course creator privileges. + """ help = 'Grants all users with INSTRUCTOR role permission to create courses' def handle(self, *args, **options): + """ + The logic of the command. + """ username = 'populate_creators_command' email = 'grant+creator+access@edx.org' try: