Updated code, get rid of obsolete feature calls in libraries and examples
This commit is contained in:
@@ -205,7 +205,7 @@ feature {NONE} -- Implementation
|
||||
loop
|
||||
s.append (" - ")
|
||||
s.append (c.item.url_encoded_name)
|
||||
t := c.item.generating_type
|
||||
t := c.item.generating_type.name
|
||||
if t.same_string ("WSF_STRING") then
|
||||
else
|
||||
s.append_character (' ')
|
||||
|
||||
@@ -87,7 +87,7 @@ feature -- Access: order status
|
||||
end
|
||||
|
||||
Order_states : ARRAY [STRING]
|
||||
-- List of valid status states
|
||||
-- List of valid status states.
|
||||
once
|
||||
Result := <<
|
||||
status_unset,
|
||||
|
||||
@@ -27,7 +27,7 @@ feature -- Access
|
||||
end
|
||||
|
||||
Milk_types: ARRAY [STRING]
|
||||
-- List of valid Milk types
|
||||
-- List of valid Milk types.
|
||||
once
|
||||
Result := <<"skim", "semi", "whole">>
|
||||
end
|
||||
|
||||
@@ -334,7 +334,6 @@ feature {NONE} -- Conversion
|
||||
|
||||
order_to_json (obj: ORDER): JSON_OBJECT
|
||||
local
|
||||
j_order: JSON_OBJECT
|
||||
j_item: JSON_OBJECT
|
||||
ja: JSON_ARRAY
|
||||
do
|
||||
|
||||
@@ -12,8 +12,6 @@ inherit
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (a_location: PATH)
|
||||
local
|
||||
d: DIRECTORY
|
||||
do
|
||||
location := a_location
|
||||
ensure_directory_exists (a_location)
|
||||
@@ -67,7 +65,6 @@ feature -- Access
|
||||
|
||||
save (a_entry_type: TYPE [detachable ANY]; a_entry: detachable ANY; cl_entry_id: CELL [detachable READABLE_STRING_GENERAL])
|
||||
local
|
||||
f: RAW_FILE
|
||||
l_id: detachable READABLE_STRING_GENERAL
|
||||
p: PATH
|
||||
do
|
||||
|
||||
@@ -54,7 +54,7 @@ feature -- Execution
|
||||
if attached {WSF_STRING} req.item ("user") as u then
|
||||
--| If yes, say hello world #name
|
||||
|
||||
l_user_name := (create {HTML_ENCODER}).decoded_string (u.value)
|
||||
l_user_name := (create {HTML_ENCODER}).decoded_string (u.value.to_string_8)
|
||||
|
||||
s := "<p>Hello " + mesg.html_encoded_string (l_user_name) + "!</p>"
|
||||
s.append ("Display a <a href=%"/users/" + u.url_encoded_value + "/message/%">message</a></p>")
|
||||
|
||||
@@ -86,7 +86,7 @@ feature -- Access
|
||||
html_decoded_string (v: READABLE_STRING_32): READABLE_STRING_32
|
||||
do
|
||||
if v.is_valid_as_string_8 then
|
||||
Result := (create {HTML_ENCODER}).decoded_string (v)
|
||||
Result := (create {HTML_ENCODER}).decoded_string (v.to_string_8)
|
||||
else
|
||||
Result := v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user