Commit de45700a authored by Romain Bignon's avatar Romain Bignon

automatically create a storage if STORAGE class attribute is not empty

parent 70641b6e
......@@ -188,7 +188,10 @@ class ConsoleApplication(BaseApplication):
Applications can overload this method to restrict backends loaded.
"""
self.load_backends(self.CAPS)
if len(self.STORAGE) > 0:
self.load_backends(self.CAPS, storage=self.create_storage())
else:
self.load_backends(self.CAPS)
@classmethod
def run(klass, args=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment