From 0c62c4bada4c2419c0ccd98b2030563de293f5b8 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 3 Oct 2016 13:17:04 +0200 Subject: [PATCH] Move the NullConfigStorage to a separate file --- .../cartodb_services/refactor/storage/null_config.py | 6 ++++++ .../cartodb_services/refactor/storage/server_config.py | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 server/lib/python/cartodb_services/cartodb_services/refactor/storage/null_config.py diff --git a/server/lib/python/cartodb_services/cartodb_services/refactor/storage/null_config.py b/server/lib/python/cartodb_services/cartodb_services/refactor/storage/null_config.py new file mode 100644 index 0000000..88e0cad --- /dev/null +++ b/server/lib/python/cartodb_services/cartodb_services/refactor/storage/null_config.py @@ -0,0 +1,6 @@ +from interfaces import ConfigStorageInterface + +class NullConfigStorage(ConfigStorageInterface): + + def get(self, key): + return None diff --git a/server/lib/python/cartodb_services/cartodb_services/refactor/storage/server_config.py b/server/lib/python/cartodb_services/cartodb_services/refactor/storage/server_config.py index e02259b..eb54bac 100644 --- a/server/lib/python/cartodb_services/cartodb_services/refactor/storage/server_config.py +++ b/server/lib/python/cartodb_services/cartodb_services/refactor/storage/server_config.py @@ -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):