onadata.apps.main.management.commands package

Submodules

onadata.apps.main.management.commands.create_enketo_express_urls module

class onadata.apps.main.management.commands.create_enketo_express_urls.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.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 = 'Create enketo url including preview'

onadata.apps.main.management.commands.create_metadata_for_kpi_deployed_forms module

class onadata.apps.main.management.commands.create_metadata_for_kpi_deployed_forms.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **kwargs)

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

help = 'Create metadata for kpi forms that are not editable'

onadata.apps.main.management.commands.export_user_emails module

class onadata.apps.main.management.commands.export_user_emails.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **kwargs)

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

help = 'Export users and emails'

onadata.apps.main.management.commands.get_accounts_with_duplicate_id_strings module

class onadata.apps.main.management.commands.get_accounts_with_duplicate_id_strings.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **kwargs)

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

help = 'Retrieves accounts with duplicate id_strings'

onadata.apps.main.management.commands.mailer module

class onadata.apps.main.management.commands.mailer.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.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 = 'Send an email to all onadata users'

onadata.apps.main.management.commands.migrate_audit_log module

class onadata.apps.main.management.commands.migrate_audit_log.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **kwargs)

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

help = 'migrate audit log from mongo to postgres'

onadata.apps.main.management.commands.remove_odk_prefix module

onadata.apps.main.management.commands.set_media_file_hash module

onadata.apps.main.management.commands.update_enketo_urls module

class onadata.apps.main.management.commands.update_enketo_urls.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.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 = 'Updates enketo preview urls in MetaData model'

Module contents