Commit 38300207 authored by Antoine Millet's avatar Antoine Millet

Added "p" tag on sub_registered objects.

parent 33d309b6
......@@ -37,7 +37,7 @@ class CCServer(object):
# These tags are reserved and cannot be setted by an user:
RESERVED_TAGS = ('id', 'a', 'r', 'close', 'con', 'ip')
RESERVED_TAGS = ('id', 'a', 'r', 'close', 'con', 'ip', 'p')
def __init__(self, conf_dir, maxcon, maxidle, certfile=None, keyfile=None,
address='', port=1984):
......@@ -149,7 +149,7 @@ class CCServer(object):
obj_parent = self.objects.get_by_id(parent)
oid = '%s.%s' % (parent, name)
obj = TqlObject(id=oid, r=role, __parent=obj_parent)
obj = TqlObject(id=oid, r=role, __parent=obj_parent, p=obj_parent['id'])
def sub_unregister(self, parent, name):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment