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

View File

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

View File

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

View File

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