lms.djangoapps.discussion.management.commands package#
Submodules#
lms.djangoapps.discussion.management.commands.assign_role module#
- class lms.djangoapps.discussion.management.commands.assign_role.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Assign a discussion forum role to a user.'#
lms.djangoapps.discussion.management.commands.assign_roles_for_course module#
This must be run only after seed_permissions_roles.py!
Creates default roles for all users in the provided course. Just runs through Enrollments.
- class lms.djangoapps.discussion.management.commands.assign_roles_for_course.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Add roles for all users in a course.'#
lms.djangoapps.discussion.management.commands.create_roles_for_existing module#
This must be run only after seed_permissions_roles.py!
Creates default roles for all users currently in the database. Just runs through Enrollments.
- class lms.djangoapps.discussion.management.commands.create_roles_for_existing.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Seed default permisssions and roles.'#
lms.djangoapps.discussion.management.commands.get_discussion_link module#
- class lms.djangoapps.discussion.management.commands.get_discussion_link.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Write a discussion link for a given course on standard output.'#
lms.djangoapps.discussion.management.commands.reload_forum_users module#
Reload forum (comment client) users from existing users.
- class lms.djangoapps.discussion.management.commands.reload_forum_users.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- adduser(user)#
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Reload forum (comment client) users from existing users.'#
lms.djangoapps.discussion.management.commands.seed_permissions_roles module#
Management command to seed default permissions and roles.
- class lms.djangoapps.discussion.management.commands.seed_permissions_roles.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Seed default permisssions and roles.'#
lms.djangoapps.discussion.management.commands.show_permissions module#
- class lms.djangoapps.discussion.management.commands.show_permissions.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = "Show a user's roles and permissions."#
lms.djangoapps.discussion.management.commands.sync_user_info module#
One-off script to sync all user information to the discussion service (later info will be synced automatically)
- class lms.djangoapps.discussion.management.commands.sync_user_info.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommandManagement command for adding all users to the discussion service.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Sync all user ids, usernames, and emails to the discussion service.'#
lms.djangoapps.discussion.management.commands.update_user_discussion_stats module#
Management command to update user stats for all users in a course.
- class lms.djangoapps.discussion.management.commands.update_user_discussion_stats.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommandInvoke with:
python manage.py lms update_user_discussion_stats <course_id>
- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Update the user stats for all users for a particular course.'#