Updated cms configuration file with an smtp server property.

Updated cms code to use the new property.
Removed title from the home response.
This commit is contained in:
jvelilla
2014-12-17 09:16:19 -03:00
parent a9109ca8f7
commit bd26deb6c1
4 changed files with 17 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ feature {NONE} -- Initialization
get_var_location
get_themes_location
get_files_location
get_smtp
end
feature -- Access
@@ -165,6 +166,9 @@ feature -- Access
end
end
smtp: detachable READABLE_STRING_8
feature -- Change
get_var_location
@@ -205,6 +209,13 @@ feature -- Change
end
end
get_smtp
do
if attached options.item ("smtp") as s then
smtp := s
end
end
feature {NONE} -- Implementation
import_from_file (fn: READABLE_STRING_GENERAL)

View File

@@ -43,6 +43,7 @@ feature {NONE} -- Initialization
site_email := configuration.site_email ("webmaster")
themes_location := configuration.themes_location
theme_name := configuration.theme_name ("default")
smtp := configuration.smtp
debug ("refactor_fixme")
fixme ("Review export clause for configuration and layout")

View File

@@ -68,6 +68,9 @@ feature -- Access: Site
-- Optional path defining the front page.
-- By default "" or "/".
smtp: detachable READABLE_STRING_8
-- Smtp server
feature -- Access: Theme
themes_location: PATH

View File

@@ -21,7 +21,7 @@ feature -- Generation
custom_prepare (page: CMS_HTML_PAGE)
do
Precursor (page)
page.register_variable (api.recent_nodes (0, 5), "nodes")
-- page.register_variable (api.recent_nodes (0, 5), "nodes")
end
feature -- Execution
@@ -29,7 +29,7 @@ feature -- Execution
process
-- Computed response message.
do
set_title ("Home")
set_title (Void)
set_page_title (Void)
end
end