onadata.apps.viewer.management.commands package

Submodules

onadata.apps.viewer.management.commands.import module

import command - Combines and runs import_forms and import_instances commands

class onadata.apps.viewer.management.commands.import.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

Import ODK forms and instances.

handle(*args, **kwargs)

Import ODK forms and instances.

help = 'Import ODK forms and instances.'

onadata.apps.viewer.management.commands.import_forms module

onadata.apps.viewer.management.commands.mark_start_times module

mark_start_times command - This is a one-time command to mark start times of old surveys

class onadata.apps.viewer.management.commands.mark_start_times.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

This is a one-time command to mark start times of old surveys.

handle(*args, **kwargs)

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

help = 'This is a one-time command to mark start times of old surveys.'

onadata.apps.viewer.management.commands.set_uuid_in_xml module

set_uuid_in_xml command - Insert UUID into XML of all existing XForms.

class onadata.apps.viewer.management.commands.set_uuid_in_xml.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

set_uuid_in_xml command - Insert UUID into XML of all existing XForms.

handle(*args, **kwargs)

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

help = 'Insert UUID into XML of all existing XForms'

onadata.apps.viewer.management.commands.update_delete_from_mongo module

Module contents