gui/backend/gui_plugin/modules/Modules.py
def create_user_group_data_tree(tree_identifier, user_group_id=None, web_session=None):
    """Creates the user group data tree for the given tree identifier and user group id.

    Args:
        tree_identifier (str): The identifier of the tree
        user_group_id (int): The id of user group
        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_user_group_data_tree(db,
                                            tree_identifier,
                                            user_group_id if user_group_id else web_session.user_personal_group_id)

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

    Args:
        tree_identifier (str): The identifier of the tree
        user_group_id (int): The id of user group
        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 user group data tree for the given tree identifier and user group id.
Creates the user group data tree for the given tree identifier and user group id .
def create_user_group_data_tree(tree_identifier, user_group_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_user_group_data_tree(db,
                                            tree_identifier,
                                            user_group_id if user_group_id else web_session.user_personal_group_id)
            return root_folder_id
def create_user_group_data_tree ( tree_identifier , user_group_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_user_group_data_tree ( db , tree_identifier , user_group_id if user_group_id else web_session . user_personal_group_id ) return root_folder_id
Creates the user group data tree for the given tree identifier and user group id.
Creates the user group data tree for the given tree identifier and user group id .
"""Creates the user group data tree for the given tree identifier and user group id.

    Args:
        tree_identifier (str): The identifier of the tree
        user_group_id (int): The id of user group
        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
user_group_id
The id of user group
The id of user group
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