core (memory/encryption): added getNamespaces method to retrieve all plugins namespaces
This commit is contained in:
parent
1307adcd71
commit
9ad238b884
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ class EncryptionHandler(object):
|
|||
u"Can't find requested encryption plugin: {namespace}").format(
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue