Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0329.py @ 2527:a201194fc461
component file sharing: comments handling first draft:
comments use a minimal pubsub service which create virtual nodes for each files. A pubsub request to org.salut-a-toi.file_comments/[FILE_ID] allow to handle comments in classic way.
Permissions are the same as for files (i.e. if an entity can see a file, she can comment it).
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Mar 2018 17:06:35 +0100 |
parents | 25e16729413b |
children | 65e278997715 |
comparison
equal
deleted
inserted
replaced
2526:35d591086974 | 2527:a201194fc461 |
---|---|
73 self.name = name | 73 self.name = name |
74 self.children = {} | 74 self.children = {} |
75 self.type = type_ | 75 self.type = type_ |
76 self.access = {} if access is None else access | 76 self.access = {} if access is None else access |
77 assert isinstance(self.access, dict) | 77 assert isinstance(self.access, dict) |
78 self.persistent = False | |
79 self.parent = None | 78 self.parent = None |
80 if parent is not None: | 79 if parent is not None: |
81 assert name | 80 assert name |
82 parent.addChild(self) | 81 parent.addChild(self) |
83 else: | 82 else: |