def update(): """ Try to import Default_Project, so that new users created with the latest code can share this project. """ try: admins = dao.get_administrators() handle_event(EVENT_FILE_IDENTIFIER, admins[0]) except Exception: LOGGER.exception("Could import DefaultProject!")
def update(): """ Try to import Default_Project, so that new users created with the latest code can share this project. """ try: admins = dao.get_administrators() service = ImportService() service.import_project_structure(DATA_FILE, admins[0].id) except Exception: LOGGER.exception("Could import DefaultProject!")
def get_administrators(): """Retrieve system administrators. Will be used for sending emails, for example.""" return dao.get_administrators()