tik_manager4.mixins.localize
Mixin for localizing files and folders
Attributes
Classes
Localize mixin for Works and Publishes. |
Module Contents
- class LocalizeMixin
Bases:
tik_manager4.objects.entity.EntityLocalize mixin for Works and Publishes.
- can_localize()
Check if the entity can be localized.
- get_localized_path(*args, return_str=True)
Return the localized path for the entity.
- Args:
- args (str): The path arguments.
Any values passed here will be appended to the path.
return_str (bool): Return the string path instead of the Path object.
- get_output_path(*args)
Decide the output path for the entity.
This depends on the localization settings.
- get_resolved_path(*args)
Return the path to the entity.
If the entity is localized, return the localized path.
- get_resolved_purgatory_path(*args)
Return the path to the purgatory entity.
If the entity is localized, return the localized purgatory path.
- show_database_folder()
Override the show_database_folder method to resolve the local or database path.
- show_project_folder()
Override the show_project_folder method to resolve the local or project path.
- sync()
Sync the entity to the origin.
This will copy the entity to the origin path. Sync is single direction.
- validate_paths(sources, targets)
Validate that all source files exist and can be moved to target locations.
- property localized
- The localization status of the work version.
- property localized_path
- The localized path of the work version.
- LOG