tik_manager4.objects.entity
Core module for Tik Manager Objects.
Attributes
Classes
Base class for all Tik Manager entities. |
Module Contents
- class Entity(name='', uid=None)
Base class for all Tik Manager entities.
- check_permissions(level)
Check the user permissions for project actions.
- Args:
level (int): The permission level required for the action.
- Returns:
int: 1 if the user has permissions, -1 otherwise.
- copy_path_to_clipboard(file_or_folder_path)
Copy the path to the clipboard.
- static generate_id()
Generate a unique id for the entity.
- get_abs_database_path(*args)
Return the absolute database path for the entity.
- Args:
- args (str): The path arguments.
Any values passed here will be appended to the path.
- get_abs_project_path(*args)
Return the absolute project path for the entity.
- Args:
- args (str): The path arguments.
Any values passed here will be appended to the path.
- get_metadata(parent_task, key=None)
Convenience method to get the metadata for work and category objects.
- get_purgatory_database_path(*args)
Return the purgatory database path for the entity.
- Args:
- args (str): The path arguments.
Any values passed here will be appended to the path.
- get_purgatory_project_path(*args)
Return the purgatory project path for the entity.
- Args:
- args (str): The path arguments.
Any values passed here will be appended to the path.
- show_database_folder()
Open the database path in Windows Explorer(Windows) or Nautilus(Linux).
- show_project_folder()
Open the path in Windows Explorer(Windows) or Nautilus(Linux)
- guard
- property id
- Return the unique id of the entity.
- property is_authenticated
- Return the authentication status of the user.
- property name
- Return the name of the entity.
- object_type
- property path
- Return the relative path of the entity.
- property permission_level
- Return the permission level of the user.
- LOG