Mercurial > libervia-backend
changeset 2749:4b8271399f67
core (memory/encryption): added getNamespaces method to retrieve all plugins namespaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 04 Jan 2019 11:14:17 +0100 |
parents | ec9445c04a36 |
children | ae495f27b316 |
files | sat/memory/encryption.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/memory/encryption.py Fri Jan 04 11:13:31 2019 +0100 +++ b/sat/memory/encryption.py Fri Jan 04 11:14:17 2019 +0100 @@ -105,6 +105,11 @@ namespace=namespace)) @classmethod + def getNamespaces(cls): + """Get available plugin namespaces""" + return {p.namespace for p in cls.getPlugins()} + + @classmethod def getNSFromName(cls, name): """Retrieve plugin namespace from its name