Renaming revert string to restore.

This commit is contained in:
jvelilla
2015-05-15 13:10:12 -03:00
parent f0668e660e
commit e4e2d662b8
3 changed files with 8 additions and 8 deletions

View File

@@ -351,15 +351,15 @@ feature -- Form
f.extend (ts)
end
f.extend_html_text ("<br/>")
f.extend_html_text ("<legend>Do you want to revert the current node?</legend>")
f.extend_html_text ("<legend>Do you want to restore the current node?</legend>")
if
a_node /= Void and then
a_node.id > 0
then
create ts.make ("op")
ts.set_default_value ("Revert")
ts.set_default_value ("Restore")
fixme ("[
ts.set_default_value (translation ("Revert"))
ts.set_default_value (translation ("Restore"))
]")
f.extend (ts)
end

View File

@@ -141,7 +141,7 @@ feature -- HTTP Methods
do_trash (req, res)
elseif
attached {WSF_STRING} req.form_parameter ("op") as l_op and then
l_op.value.same_string ("Revert")
l_op.value.same_string ("Restore")
then
do_restore (req, res)
end
@@ -194,7 +194,7 @@ feature -- HTTP Methods
send_not_implemented ("REST API not yet implemented", req, res)
end
feature {NONE} -- Trash:Revert
feature {NONE} -- Trash:Restore
do_trash (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Trash a node from the database.
@@ -224,7 +224,7 @@ feature {NONE} -- Trash:Revert
end
do_restore (req: WSF_REQUEST; res: WSF_RESPONSE)
-- Revert a node: From {CMS_NODE_API}.trashed to {CMS_NODE_API}.not_published.
-- Restore a node: From {CMS_NODE_API}.trashed to {CMS_NODE_API}.not_published.
do
if attached current_user (req) as l_user then
if attached {WSF_STRING} req.path_parameter ("id") as l_id then

View File

@@ -210,7 +210,7 @@ feature -- Change: Node
l_time: DATE_TIME
do
create l_time.make_now_utc
write_information_log (generator + ".revert_node {" + a_id.out + "}")
write_information_log (generator + ".restore_node {" + a_id.out + "}")
error_handler.reset
create l_parameters.make (1)
@@ -319,7 +319,7 @@ feature {NONE} -- Queries
-- Physical deletion with free metadata.
sql_restore_node: STRING = "UPDATE nodes SET changed=:changed, status =:status WHERE nid=:nid"
-- Revert node to {CMS_NODE_API}.not_publised.
-- Restore node to {CMS_NODE_API}.not_publised.
-- sql_update_node_author: STRING = "UPDATE nodes SET author=:author WHERE nid=:nid;"