# HG changeset patch # User Goffi # Date 1546596857 -3600 # Node ID 4b8271399f67a8e720949d2a9378b985ad895190 # Parent ec9445c04a361c67b7899e936def0f9ccd4c77a0 core (memory/encryption): added getNamespaces method to retrieve all plugins namespaces diff -r ec9445c04a36 -r 4b8271399f67 sat/memory/encryption.py --- 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