Move the NullConfigStorage to a separate file
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
from interfaces import ConfigStorageInterface
|
||||||
|
|
||||||
|
class NullConfigStorage(ConfigStorageInterface):
|
||||||
|
|
||||||
|
def get(self, key):
|
||||||
|
return None
|
||||||
+1
-4
@@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
import cartodb_services
|
import cartodb_services
|
||||||
from interfaces import ConfigStorageInterface
|
from interfaces import ConfigStorageInterface
|
||||||
|
from null_config import NullConfigStorage
|
||||||
|
|
||||||
class InDbServerConfigStorage(ConfigStorageInterface):
|
class InDbServerConfigStorage(ConfigStorageInterface):
|
||||||
|
|
||||||
@@ -13,10 +14,6 @@ class InDbServerConfigStorage(ConfigStorageInterface):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
class NullConfigStorage(ConfigStorageInterface):
|
|
||||||
|
|
||||||
def get(self, key):
|
|
||||||
return None
|
|
||||||
|
|
||||||
# TODO move out of this file. In general this is config but either user or org config
|
# TODO move out of this file. In general this is config but either user or org config
|
||||||
class RedisConfigStorage(ConfigStorageInterface):
|
class RedisConfigStorage(ConfigStorageInterface):
|
||||||
|
|||||||
Reference in New Issue
Block a user