Code cleaning.
This commit is contained in:
@@ -134,13 +134,6 @@ feature -- Access
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
build_auth_engine
|
|
||||||
do
|
|
||||||
to_implement ("Not implemented authentication")
|
|
||||||
-- Note: we can remoce this feature, unless we want to
|
|
||||||
-- provide a custom auth strategy.
|
|
||||||
end
|
|
||||||
|
|
||||||
build_mailer
|
build_mailer
|
||||||
do
|
do
|
||||||
to_implement ("Not implemented mailer")
|
to_implement ("Not implemented mailer")
|
||||||
|
|||||||
@@ -106,12 +106,15 @@ feature -- Access: Theme
|
|||||||
feature -- Access: storage
|
feature -- Access: storage
|
||||||
|
|
||||||
storage_drivers: STRING_TABLE [CMS_STORAGE_BUILDER]
|
storage_drivers: STRING_TABLE [CMS_STORAGE_BUILDER]
|
||||||
-- table of storage drivers that the cms is aware.
|
-- Table of available storage drivers.
|
||||||
|
-- i.e: mysql, sqlite, ...
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
storage (a_error_handler: ERROR_HANDLER): detachable CMS_STORAGE
|
storage (a_error_handler: ERROR_HANDLER): detachable CMS_STORAGE
|
||||||
-- Retrieve current CMS_STORAGE strategy based on a configuration file.
|
-- CMS Storage object defined according to the configuration or default.
|
||||||
|
-- Use `a_error_handler' to get eventual error information occurred during the storage
|
||||||
|
-- initialization.
|
||||||
local
|
local
|
||||||
retried: BOOLEAN
|
retried: BOOLEAN
|
||||||
l_message: STRING
|
l_message: STRING
|
||||||
@@ -126,7 +129,7 @@ feature -- Access: storage
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
to_implement ("Workaround code, persistence layer does not implement yet this kind of error handling.")
|
to_implement ("Workaround code, persistence layer does not implement yet this kind of error handling.")
|
||||||
-- error hanling.
|
-- error handling.
|
||||||
create l_message.make (1024)
|
create l_message.make (1024)
|
||||||
if attached ((create {EXCEPTION_MANAGER}).last_exception) as l_exception then
|
if attached ((create {EXCEPTION_MANAGER}).last_exception) as l_exception then
|
||||||
if attached l_exception.description as l_description then
|
if attached l_exception.description as l_description then
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ feature {NONE} -- Initialize
|
|||||||
local
|
local
|
||||||
l_module: CMS_MODULE
|
l_module: CMS_MODULE
|
||||||
do
|
do
|
||||||
to_implement ("Refactor database setup")
|
|
||||||
if attached setup.storage (error_handler) as l_storage then
|
if attached setup.storage (error_handler) as l_storage then
|
||||||
storage := l_storage
|
storage := l_storage
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ feature {NONE} -- Initialization
|
|||||||
do
|
do
|
||||||
initialize_modules
|
initialize_modules
|
||||||
initialize_users
|
initialize_users
|
||||||
initialize_auth_engine
|
|
||||||
initialize_mailer
|
initialize_mailer
|
||||||
-- initialize_router
|
-- initialize_router
|
||||||
-- initialize_filter: expanded here, for void-safety concern.
|
-- initialize_filter: expanded here, for void-safety concern.
|
||||||
@@ -83,11 +82,6 @@ feature {NONE} -- Initialization
|
|||||||
to_implement ("To Implement mailer")
|
to_implement ("To Implement mailer")
|
||||||
end
|
end
|
||||||
|
|
||||||
initialize_auth_engine
|
|
||||||
do
|
|
||||||
to_implement ("To Implement authentication engine")
|
|
||||||
end
|
|
||||||
|
|
||||||
feature -- Settings: router
|
feature -- Settings: router
|
||||||
|
|
||||||
setup_router
|
setup_router
|
||||||
|
|||||||
Reference in New Issue
Block a user