Skip to content
Snippets Groups Projects
Commit a2b10563 authored by Anael Beutot's avatar Anael Beutot
Browse files

Can add tags on node handler imperatively.

parent f2e63aec
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,12 @@ class DefaultHandler(RpcHandler):
"""
return get_tags(self, tags, noresolve_tags)
def set_tag(self, tag):
self.tags[tag.name] = tag
def remove_tag(self, tag_name):
self.tags.pop(tag_name, None)
class Node(Thread):
"""Main class for ccnode."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment