lms.djangoapps.certificates.management.commands package#

Submodules#

lms.djangoapps.certificates.management.commands.cert_generation module#

Management command to generate course certificates for one or more users in a given course run.

class lms.djangoapps.certificates.management.commands.cert_generation.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Management command to generate course certificates for one or more users in a given course run.

Example usage: ./manage.py lms cert_generation -u 123 456 -c course-v1:edX+DemoX+Demo_Course

add_arguments(parser)#

Entry point for subclassed commands to add custom arguments.

get_args_from_database()#

Returns an options dictionary from the current CertificateGenerationCommandConfiguration model.

handle(*args, **options)#

The actual logic of the command. Subclasses must implement this method.

help = '\n    Generate course certificates for one or more users in a given course run.\n    '#

lms.djangoapps.certificates.management.commands.modify_cert_template module#

Management command to modify certificate templates.

class lms.djangoapps.certificates.management.commands.modify_cert_template.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Management command to modify certificate templates. Example usage: ./manage.py lms modify_cert_template –old-text “</head>” –new text “<p>boo!</p></head>” –templates 867 3509

add_arguments(parser)#

Entry point for subclassed commands to add custom arguments.

get_args_from_database()#

Returns an options dictionary from the current ModifiedCertificateTemplateCommandConfiguration instance.

handle(*args, **options)#

The actual logic of the command. Subclasses must implement this method.

help = "Modify one or more certificate templates.\n    This is DANGEROUS.\n    * This uses string replacement to modify HTML-like templates, because the presence of\n      Django Templating makes it impossible to do true parsing.\n    * This isn't parameterizing the replacement text, for the same reason.  It has\n      no way of knowing what is template language and what is HTML.\n    Do not trust that this will get the conversion right without verification,\n    and absolutely do not accepted untrusted user input for the replacement text. This is\n    to be run by trusted users only.\n    Always run this with dry-run or in a reliable test environment.\n    "#

lms.djangoapps.certificates.management.commands.regenerate_noidv_cert module#

Management command to regenerate unverified certificates when a course transitions to honor code.

class lms.djangoapps.certificates.management.commands.regenerate_noidv_cert.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Management command to regenerate unverified certificates when a course transitions to honor code.

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.

Module contents#