Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

TagList

Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

tags : list
add_tag

Add a tag to the list if it does not exist

tag : Tag
add_tags

Add a list of tags to the list if it does not exist

tags : list
count

Return the number of tags

Return type : int
get_by_key

return the tag if it exists

tag_key : str
Return type : list
get_first_by_key

return the first tag with the given key or None if it does not exist

tag_key : str
Return type : gws_core.tag.tag.Tag | None
get_tag

return the tag if it exists

key : str
value : Union
Return type : gws_core.tag.tag.Tag | None
get_tags
Return type : list
has_tag

return true if the tag key and value already exist in the model

tag : Tag
Return type : bool
has_tag_key

return true if the tag key already exist in the model

tag_key : str
Return type : bool
remove_loaded_tags

Remove tags that are loaded from the database

Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.