From ad4f020d0e724e7bf49dc620254f7c32790813d7 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 21 Aug 2015 19:16:31 +0200 Subject: [PATCH] The NULL storage may look into the CMS configuration file. This allows to run the CMS without any database. --- src/persistence/cms_storage_null.e | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/persistence/cms_storage_null.e b/src/persistence/cms_storage_null.e index 1b12b3b..f74a427 100644 --- a/src/persistence/cms_storage_null.e +++ b/src/persistence/cms_storage_null.e @@ -101,7 +101,19 @@ feature -- Custom custom_value (a_name: READABLE_STRING_GENERAL; a_type: detachable READABLE_STRING_8): detachable READABLE_STRING_32 -- Data for name `a_name' and type `a_type' (or default if none). + local + s: STRING_32 do + if attached api as l_api then + create s.make_from_string_general ("custom_values") + if a_type /= Void then + s.append_character ('.') + s.append_string_general (a_type) + end + s.append_character ('.') + s.append_string_general (a_name) + Result := l_api.setup.text_item (s) + end end