diff sat/memory/encryption.py @ 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 da59ff099b32
children 1fa615faec8b
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