Exemple #1
0
def init_static_data():
    clear_supplypoints()
    load_fixtures()
    load_report_types()
    load_roles()
    create_location_and_sp_types()
    load_schedules()
    locations = getattr(settings, "STATIC_LOCATIONS")
    if locations:
        load_locations(locations)
    info("Success!")
Exemple #2
0
def init_static_data():
    clear_supplypoints()
    load_fixtures()
    load_report_types()
    load_roles()
    create_location_and_sp_types()
    load_schedules()
    locations = getattr(settings, "STATIC_LOCATIONS")
    if locations:
        load_locations(locations)
    info("Success!")
Exemple #3
0
def init_static_data(log_to_console=False):
    """
    Initialize any data that should be static here
    """
    # These are annoyingly necessary to live in the DB, currently.
    # Really this should be app logic, I think.
    load_report_types()
    load_roles()
    loc_file = getattr(settings, "STATIC_LOCATIONS")
    if loc_file:
        load_locations(loc_file, log_to_console=log_to_console)
    product_file = getattr(settings, "STATIC_PRODUCTS")
    if product_file:
        load_products(product_file, log_to_console=log_to_console)
def init_static_data(log_to_console=False):
    """
    Initialize any data that should be static here
    """
    # These are annoyingly necessary to live in the DB, currently. 
    # Really this should be app logic, I think.
    load_report_types()
    load_roles()
    loc_file = getattr(settings, "STATIC_LOCATIONS")
    if loc_file:
        load_locations(loc_file, log_to_console=log_to_console)
    product_file = getattr(settings, "STATIC_PRODUCTS")
    if product_file:
        load_products(product_file, log_to_console=log_to_console)