paya.runtime.networks.Tagger#
- class Tagger(*args, **kwargs)#
Inheritance
System
Network
Network
DependNode
DependNode
PyNode
ProxyUnicode
- classmethod create(node)#
Adds a tagger node to the specified node.
- Parameters
node (
str
,DependNode
) – the node to which to add a tagger system- Returns
The tagger node.
- Return type
- classmethod getFromTaggingNode(taggingNode, create=False)#
- Parameters
taggingNode (
str
,DependNode
) – The tagging node.create (bool) – create a tagger if one was not found; defaults to
False
- Returns
The tagger utility node, if present.
- Return type
Tagger
,None
- tag(tagName, *attrsOrNodes)#
Tags attributes or nodes for later retrieval via
getByTag()
.- Parameters
tagName (str) – the tag to use
*attrsOrNodes – the attributes or nodes to tags
- Returns
- getByTag(tagName)#