Use append_to_html rather than function to_html: STRING

this is mainly to avoid creating useless intermediary strings.
This commit is contained in:
Jocelyn Fiat
2013-02-26 12:22:53 +01:00
parent b543a6b6f2
commit 0902eef91c
17 changed files with 118 additions and 102 deletions

View File

@@ -82,7 +82,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
end
else
set_title ("Access denied")

View File

@@ -87,7 +87,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
end
else
b.append ("<h1>Access denied</h1>")

View File

@@ -112,7 +112,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
set_main_content (b)
end
end

View File

@@ -105,7 +105,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
end
end
set_main_content (b)

View File

@@ -34,7 +34,7 @@ feature -- Execution
if attached u.email as l_email then
f := new_password_form (url (request.path_info, Void), "new-password")
b.append ("Password reset instructions will be mailed to <em>" + l_email + "</em>. You must " + link ("log out", "/user/logout", Void) + " to use the password reset link in the e-mail.")
b.append (f.to_html (theme))
f.append_to_html (theme, b)
else
b.append ("Your account does not have any email address set!")
set_redirection (url ("/user/"+ u.id.out +"/edit", Void))
@@ -84,7 +84,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
end
end
set_main_content (b)

View File

@@ -103,7 +103,7 @@ feature -- Execution
end
fd.apply_to_associated_form
end
b.append (f.to_html (theme))
f.append_to_html (theme, b)
end
end
set_main_content (b)