Beispiel #1
0
def import_scheduled_mx_check_y5b(clean, file=os.path.join(os.curdir, 'assets', 'schedule_mx_check_y5b.csv')):
    from modules.forms.y5b.scheduled_mx_check import read_datas
    from modules.forms.util_csv import reset_datas

    sys.stdout.write('Initialized %d data(s).\n' % reset_datas(file,
        'scheduled_mx_check_y5b', read_datas, clean=clean))
Beispiel #2
0
def import_time_control_y5b(clean, file=os.path.join(os.curdir, 'assets', 'time_control_y5b.csv')):
    from modules.forms.y5b.time_control_unit import read_datas
    from modules.forms.util_csv import reset_datas

    sys.stdout.write('Initialized %d data(s).\n' % reset_datas(file,
        'time_control_unit_y5b', read_datas, clean=clean))
Beispiel #3
0
def import_airmaterial_category(clean, file=os.path.join(os.curdir, 'assets', 'airmaterial_category.csv')):
    from modules.models.airmaterial.airmaterial_category import AirmaterialCategory, read_datas
    from modules.models.util_csv import reset_datas

    sys.stdout.write('Initialized %d data(s).\n' % reset_datas(file,
        AirmaterialCategory, read_datas, clean=clean))
Beispiel #4
0
def import_storage_list(clean, file=os.path.join(os.curdir, 'assets', 'storage_list.csv')):
    from modules.models.airmaterial.storage_list import reset_datas, AirMaterialStorageList

    sys.stdout.write('Initialized %d data(s).\n' % reset_datas(file,
        AirMaterialStorageList, clean=clean))
Beispiel #5
0
def import_aircraft(clean, file=os.path.join(os.curdir, 'assets', 'aircraft.csv')):
    from modules.forms.aircraft.aircraft import read_datas
    from modules.forms.util_csv import reset_datas

    sys.stdout.write('Initialized %d data(s).\n' % reset_datas(file,
        'aircraft_information', read_datas, clean=clean))