Code cleaning.
This commit is contained in:
@@ -134,13 +134,6 @@ feature -- Access
|
||||
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
|
||||
do
|
||||
to_implement ("Not implemented mailer")
|
||||
|
||||
@@ -106,12 +106,15 @@ feature -- Access: Theme
|
||||
feature -- Access: storage
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
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
|
||||
retried: BOOLEAN
|
||||
l_message: STRING
|
||||
@@ -126,7 +129,7 @@ feature -- Access: storage
|
||||
end
|
||||
else
|
||||
to_implement ("Workaround code, persistence layer does not implement yet this kind of error handling.")
|
||||
-- error hanling.
|
||||
-- error handling.
|
||||
create l_message.make (1024)
|
||||
if attached ((create {EXCEPTION_MANAGER}).last_exception) as l_exception then
|
||||
if attached l_exception.description as l_description then
|
||||
|
||||
@@ -35,7 +35,6 @@ feature {NONE} -- Initialize
|
||||
local
|
||||
l_module: CMS_MODULE
|
||||
do
|
||||
to_implement ("Refactor database setup")
|
||||
if attached setup.storage (error_handler) as l_storage then
|
||||
storage := l_storage
|
||||
else
|
||||
|
||||
@@ -55,7 +55,6 @@ feature {NONE} -- Initialization
|
||||
do
|
||||
initialize_modules
|
||||
initialize_users
|
||||
initialize_auth_engine
|
||||
initialize_mailer
|
||||
-- initialize_router
|
||||
-- initialize_filter: expanded here, for void-safety concern.
|
||||
@@ -83,11 +82,6 @@ feature {NONE} -- Initialization
|
||||
to_implement ("To Implement mailer")
|
||||
end
|
||||
|
||||
initialize_auth_engine
|
||||
do
|
||||
to_implement ("To Implement authentication engine")
|
||||
end
|
||||
|
||||
feature -- Settings: router
|
||||
|
||||
setup_router
|
||||
|
||||
Reference in New Issue
Block a user