class documentation

An generic class supporting tags.

Class Method FromDict Custom function for instances.
Class Method ValidateTag Check if a tag is valid.
Method AddTag Add a new tag.
Method GetTags Return the tags list.
Method RemoveTag Remove a tag.
Method ToDict Taggable-object-specific conversion to standard python types.
Constant VALID_TAG_RE Undocumented
Class Variable __slots__ Undocumented
Instance Variable tags Undocumented

Inherited from ConfigObject:

Method __getattr__ Undocumented
Method __repr__ Implement __repr__ for ConfigObjects.
Method __setstate__ Undocumented
Method Copy Makes a deep copy of the current object and its children.
Method UpgradeConfig Fill defaults for missing configuration values.
Method Validate Validates the slots.

Inherited from ValidatedSlots (via ConfigObject):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Method __init__ Constructor for BaseOpCode.
@classmethod
def ValidateTag(cls, tag):

Check if a tag is valid.

If the tag is invalid, an errors.TagError will be raised. The function has no return value.

def AddTag(self, tag):

Add a new tag.

def GetTags(self):

Return the tags list.

def RemoveTag(self, tag):

Remove a tag.

def ToDict(self, _with_private=False):

Taggable-object-specific conversion to standard python types.

This replaces the tags set with a list.

VALID_TAG_RE =

Undocumented

Value
re.compile(r'^[\w\.\+\*/:@-]+$')
tags: set =

Undocumented