automatically create a storage if STORAGE class attribute is not empty
This commit is contained in:
parent
70641b6e00
commit
de45700a49
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue