Module Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias identifier ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam defaults vararg kwarg body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Call NameLoad Str NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call NameLoad Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A os N/A sys django.contrib.auth.models User django.core.management.base BaseCommand CommandError django.utils.translation ugettext_lazy ugettext _ onadata.libs.utils.backup_tools restore_backup_from_zip Command N/A BaseCommand N/A N/A args username input_file N/A help N/A ugettext_lazy Restore a zip backup of a form and all its submissions handle N/A N/A self N/A args options N/A N/A N/A N/A username N/A args N/A 0 N/A N/A N/A IndexError N/A N/A N/A CommandError N/A _ You must provide the username to publish the form to. N/A N/A N/A N/A N/A N/A User objects get username username N/A N/A N/A N/A User DoesNotExist N/A N/A N/A CommandError N/A N/A _ The user '%s' does not exist. username N/A N/A N/A input_file N/A args N/A 1 N/A N/A N/A IndexError N/A N/A N/A CommandError N/A _ You must provide the path to restore from. N/A N/A input_file N/A N/A N/A os path realpath input_file N/A N/A num_instances num_restored N/A restore_backup_from_zip input_file username N/A N/A N/A N/A sys stdout write N/A Restored %d of %d submissions
 N/A num_restored num_instances N/A N/A