comparison src/core/xmpp.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 d485e9416493
children 60758de1c227
comparison
equal deleted inserted replaced
2526:35d591086974 2527:a201194fc461
627 """ 627 """
628 if C.PLUG_MODE_COMPONENT not in current._info[u'modes']: 628 if C.PLUG_MODE_COMPONENT not in current._info[u'modes']:
629 if not required: 629 if not required:
630 return 630 return
631 else: 631 else:
632 log.error(_(u"Plugin {current_name} if needed for {entry_name}, but it doesn't handle component mode").format( 632 log.error(_(u"Plugin {current_name} is needed for {entry_name}, but it doesn't handle component mode").format(
633 current_name = current._info[u'import_name'], 633 current_name = current._info[u'import_name'],
634 entry_name = self.entry_plugin._info[u'import_name'] 634 entry_name = self.entry_plugin._info[u'import_name']
635 )) 635 ))
636 raise exceptions.InternalError(_(u"invalid plugin mode")) 636 raise exceptions.InternalError(_(u"invalid plugin mode"))
637 637