comparison src/plugins/plugin_comp_file_sharing.py @ 2522:95c31756944c

component file sharing, plugin XEP-0231: thumbnail are now returned by component using Bits of Binary: thumbnails are saved in common cache, and sent blindly on request. There is no access check for thumbnails yet, which is a security/privacy issue, but mitigated by the fact that content id must be known to retrieve the file. Proper access check is planed.
author Goffi <goffi@goffi.org>
date Wed, 14 Mar 2018 08:14:32 +0100
parents 353880a5c363
children a201194fc461
comparison
equal deleted inserted replaced
2521:327bbbe793ce 2522:95c31756944c
34 C.PI_NAME: "File sharing component", 34 C.PI_NAME: "File sharing component",
35 C.PI_IMPORT_NAME: "file_sharing", 35 C.PI_IMPORT_NAME: "file_sharing",
36 C.PI_MODES: [C.PLUG_MODE_COMPONENT], 36 C.PI_MODES: [C.PLUG_MODE_COMPONENT],
37 C.PI_TYPE: C.PLUG_TYPE_ENTRY_POINT, 37 C.PI_TYPE: C.PLUG_TYPE_ENTRY_POINT,
38 C.PI_PROTOCOLS: [], 38 C.PI_PROTOCOLS: [],
39 C.PI_DEPENDENCIES: ["FILE", "XEP-0234", "XEP-0260", "XEP-0261", "XEP-0264", "XEP-0329"], 39 C.PI_DEPENDENCIES: ["FILE", "XEP-0231", "XEP-0234", "XEP-0260", "XEP-0261", "XEP-0264", "XEP-0329"],
40 C.PI_RECOMMENDATIONS: [], 40 C.PI_RECOMMENDATIONS: [],
41 C.PI_MAIN: "FileSharing", 41 C.PI_MAIN: "FileSharing",
42 C.PI_HANDLER: "no", 42 C.PI_HANDLER: "no",
43 C.PI_DESCRIPTION: _(u"""Component hosting and sharing files""") 43 C.PI_DESCRIPTION: _(u"""Component hosting and sharing files""")
44 } 44 }