gui/backend/gui_plugin/modules/Modules.py
def create_profile_data_tree(tree_identifier, profile_id=None, web_session=None):
    """Creates the profile data tree for the given tree identifier and profile id.

    Args:
        tree_identifier (str): The identifier of the tree
        profile_id (int): The id of profile
        web_session (object): The webserver session object, optional. Will be
            passed in my the webserver automatically


    Returns:
        The id of the root folder.
    """

    if tree_identifier.strip() == "":
        raise MSGException(Error.CORE_INVALID_PARAMETER, f"Parameter 'tree_identifier' cannot be empty.")

    with BackendDatabase(web_session) as db:
        with BackendTransaction(db):
            root_folder_id = backend.create_profile_data_tree(db,
                                            tree_identifier,
                                            profile_id if profile_id else web_session.session_active_profile_id)

            return root_folder_id
Creates the profile data tree for the given tree identifier and profile id.

    Args:
        tree_identifier (str): The identifier of the tree
        profile_id (int): The id of profile
        web_session (object): The webserver session object, optional. Will be
            passed in my the webserver automatically


    Returns:
        The id of the root folder.
    
Creates the profile data tree for the given tree identifier and profile id.
Creates the profile data tree for the given tree identifier and profile id .
def create_profile_data_tree(tree_identifier, profile_id=None, web_session=None):
    if tree_identifier.strip() == "":
        raise MSGException(Error.CORE_INVALID_PARAMETER, f"Parameter 'tree_identifier' cannot be empty.")
    with BackendDatabase(web_session) as db:
        with BackendTransaction(db):
            root_folder_id = backend.create_profile_data_tree(db,
                                            tree_identifier,
                                            profile_id if profile_id else web_session.session_active_profile_id)
            return root_folder_id
def create_profile_data_tree ( tree_identifier , profile_id = None , web_session = None ) : if tree_identifier . strip ( ) == "" : raise MSGException ( Error . CORE_INVALID_PARAMETER , f"Parameter 'tree_identifier' cannot be empty." ) with BackendDatabase ( web_session ) as db : with BackendTransaction ( db ) : root_folder_id = backend . create_profile_data_tree ( db , tree_identifier , profile_id if profile_id else web_session . session_active_profile_id ) return root_folder_id
Creates the profile data tree for the given tree identifier and profile id.
Creates the profile data tree for the given tree identifier and profile id .
"""Creates the profile data tree for the given tree identifier and profile id.

    Args:
        tree_identifier (str): The identifier of the tree
        profile_id (int): The id of profile
        web_session (object): The webserver session object, optional. Will be
            passed in my the webserver automatically


    Returns:
        The id of the root folder.
    """
The id of the root folder.
The id of the root folder .
tree_identifier
The identifier of the tree
The identifier of the tree
profile_id
The id of profile
The id of profile
web_session
The webserver session object, optional. Will be
passed in my the webserver automatically
The webserver session object optional . Will be passed in my the webserver automatically