comparison sat/plugins/plugin_exp_invitation_file.py @ 3314:5887fb414758

component file sharing: add/parse affiliation when possible
author Goffi <goffi@goffi.org>
date Fri, 17 Jul 2020 13:00:10 +0200
parents 83795ff8a633
children b57b5e42e894
comparison
equal deleted inserted replaced
3313:624c60293deb 3314:5887fb414758
77 repos_type=repos_type)) 77 repos_type=repos_type))
78 repos_type = "file" 78 repos_type = "file"
79 type_human = _("file sharing") 79 type_human = _("file sharing")
80 log.info(_( 80 log.info(_(
81 '{profile} has received an invitation for a files repository ({type_human}) ' 81 '{profile} has received an invitation for a files repository ({type_human}) '
82 'with namespace "{namespace}" at path [{path}]').format( 82 'with namespace {namespace!r} at path [{path}]').format(
83 profile=client.profile, type_human=type_human, namespace=namespace, path=path) 83 profile=client.profile, type_human=type_human, namespace=namespace, path=path)
84 ) 84 )
85 return defer.ensureDeferred( 85 return defer.ensureDeferred(
86 self.host.plugins['LIST_INTEREST'].registerFileSharing( 86 self.host.plugins['LIST_INTEREST'].registerFileSharing(
87 client, service, repos_type, namespace, path, name, extra 87 client, service, repos_type, namespace, path, name, extra