Updated CMS_SERVICE to make the cms library complete void-safe.

Reviewed configuration related feature.
Renamed JSON_CONFIGURATION as APPLICATION_JSON_CONFIGURATION_HELPER to avoid confusion.
Updated CMS_DEFAULT_SETUP to use configuration from cms configuration library.
Added {CMS_API}.module_configuration (a_module_name: READABLE_STRING_GENERAL; a_name: detachable READABLE_STRING_GENERAL): detachable CONFIG_READER  to help getting access to configuration of a module (for now, only json and ini are supported, but in the future, this could support database layer directly)
Added CMS_HOOK_BLOCK_HELPER to reuse the template_block (..): ... function.
Cosmetic
Removed CMS_SETUP.smtp_server since for now, there is no need for such general setting.
Add header line "X-ServerEWF-App: CMS" as a simple way to know if request is processed by the CMS.
This commit is contained in:
2015-01-14 18:25:26 +01:00
parent 792880aa7a
commit db9e40cec4
31 changed files with 234 additions and 93 deletions

View File

@@ -1,7 +1,7 @@
note
description: "Object that represent Database configuration settings"
date: "$Date: 2014-08-20 15:21:15 -0300 (mi., 20 ago. 2014) $"
revision: "$Revision: 95678 $"
date: "$Date: 2015-01-14 16:13:47 +0100 (mer., 14 janv. 2015) $"
revision: "$Revision: 96454 $"
class
DATABASE_CONFIGURATION
@@ -25,10 +25,10 @@ feature {NONE} -- Initialization
feature -- Access
driver: READABLE_STRING_32
--Database driver.
--Database driver.
database_string: READABLE_STRING_32
-- Database connection.
-- Database connection.
connection_string: READABLE_STRING_32
-- Connection string