help='Export all widgets marked in the c# dll package as widgets and directly imports them to the mothra database.' \
'As if "latino.generate_package a.json" followed by "workflows.import_package a.json" would be called.' \
'!However!, the export file goes to the standard place (latino/db/package_data.json) and replaces the existing file.' \
'Variable "create_backups" in "latino/setings.py" controls whether backups of package_data.json are kept in "latino/backups".'
option_list=BaseCommand.option_list+(
make_option('-f','--force',
action="store_true",
dest='force',
default=False,
help='By default, the old "package_data.json" and newly generated definition strings are compared. In case there are no differences'
'nothing happens. This switch forces (regardles of equality) the import of the newly generated data and creation of backups '
'(if latino/setings.py/create_backups == True).'
),
make_option('-r','--replace',
action="store_true",
dest='replace',
default=False,
help='Completely replace whole widgets with the new one where UIDs match. Default behaviour merges widgets sub-models (AbstractInputs, AbstractOutputs and AbstratcOptions)'
'based on their sub-model\'s own UID. When using the option "--replace" then all widget\'s old submodels are deleted and completely replaced by new sub-models.)'
#If auto_import_package_data is true then package_data.json file is automatically imported when ClowdFlows project is newly deployed or refreshed from git
auto_import_package_data=True
#For auto_import_package_data_replace_option description see the 'replace' option in workflows/import_package command
auto_import_package_data_replace_option=True
#If file(s) other than ./db/package_data.json should be imported, auto_import_package_data_files should be corrected