示例#1
0
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()
        handle_event(EVENT_FILE_IDENTIFIER, admins[0])
    except Exception:
        LOGGER.exception("Could import DefaultProject!")
示例#3
0
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 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!")
示例#5
0
 def get_administrators():
     """Retrieve system administrators.
     Will be used for sending emails, for example."""
     return dao.get_administrators()
示例#6
0
 def get_administrators():
     """Retrieve system administrators.
     Will be used for sending emails, for example."""
     return dao.get_administrators()