onadata.apps.main.management.commands package¶
Submodules¶
onadata.apps.main.management.commands.create_enketo_express_urls module¶
Creates enketo url including preview
- class onadata.apps.main.management.commands.create_enketo_express_urls.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Create enketo url including preview
- 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¶
Create metadata for kpi forms that are not editable
- class onadata.apps.main.management.commands.create_metadata_for_kpi_deployed_forms.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Create metadata for kpi forms that are not editable
- 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¶
export_user_emails command - prints a CSV of usernames and emails.
- class onadata.apps.main.management.commands.export_user_emails.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Export users and emails
- 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¶
get_accounts_with_duplicate_id_strings - Retrieves accounts with duplicate id_strings
- class onadata.apps.main.management.commands.get_accounts_with_duplicate_id_strings.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Retrieves accounts with duplicate id_strings
- handle(*args, **kwargs)¶
Retrieves accounts with duplicate id_strings
- help = 'Retrieves accounts with duplicate id_strings'¶
onadata.apps.main.management.commands.mailer module¶
mailer command - sends emails to all users.
- class onadata.apps.main.management.commands.mailer.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Send an email to all onadata users
- 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¶
onadata.apps.main.management.commands.remove_odk_prefix module¶
onadata.apps.main.management.commands.set_media_file_hash module¶
set_media_file_hash command - (re)apply the hash of all media files.
- class onadata.apps.main.management.commands.set_media_file_hash.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Set media file_hash for all existing media files
- handle(*args, **kwargs)¶
Set media file_hash for all existing media files
- help = 'Set media file_hash for all existing media files'¶
onadata.apps.main.management.commands.update_enketo_urls module¶
update_enketo_urls - command to update Enketo preview URLs in the MetaData model.
- class onadata.apps.main.management.commands.update_enketo_urls.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Bases:
BaseCommand
Updates enketo preview urls in MetaData model
- add_arguments(parser)¶
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)¶
Updates enketo preview urls in MetaData model
- help = 'Updates enketo preview urls in MetaData model'¶