Move the NullConfigStorage to a separate file

This commit is contained in:
Rafa de la Torre
2016-10-03 13:17:04 +02:00
parent 3361960cfc
commit 0c62c4bada
2 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
from interfaces import ConfigStorageInterface
class NullConfigStorage(ConfigStorageInterface):
def get(self, key):
return None

View File

@@ -1,6 +1,7 @@
import json
import cartodb_services
from interfaces import ConfigStorageInterface
from null_config import NullConfigStorage
class InDbServerConfigStorage(ConfigStorageInterface):
@@ -13,10 +14,6 @@ class InDbServerConfigStorage(ConfigStorageInterface):
else:
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
class RedisConfigStorage(ConfigStorageInterface):