Added a version of ISE Library URI modified to be compilable with compiler < 7.2
Fixed openid when redirection is involved Fixed Openid Attribute Exchange implementation (AX) Added WSF_REQUEST.items_as_string_items: ... for convenience, and ease integration with other components (such as the new openid)
This commit is contained in:
@@ -347,7 +347,7 @@ feature {NONE} -- Access: global variable
|
||||
end
|
||||
end
|
||||
|
||||
feature -- Access: global variable
|
||||
feature -- Access: global variables
|
||||
|
||||
items: ITERABLE [WSF_VALUE]
|
||||
do
|
||||
@@ -411,6 +411,43 @@ feature -- Access: global variable
|
||||
Result.keep_head (n - 1)
|
||||
end
|
||||
|
||||
feature -- Helpers: global variables
|
||||
|
||||
items_as_string_items: ITERABLE [TUPLE [name: READABLE_STRING_32; value: detachable READABLE_STRING_32]]
|
||||
-- `items' as strings items
|
||||
-- i.e: flatten any table or related into multiple string items
|
||||
local
|
||||
res: ARRAYED_LIST [TUPLE [name: READABLE_STRING_32; value: detachable READABLE_STRING_32]]
|
||||
do
|
||||
if attached items_table as tb then
|
||||
create res.make (tb.count)
|
||||
across
|
||||
tb as c
|
||||
loop
|
||||
append_value_as_string_items_to (c.item, res)
|
||||
end
|
||||
else
|
||||
create res.make (0)
|
||||
end
|
||||
Result := res
|
||||
end
|
||||
|
||||
append_value_as_string_items_to (v: WSF_VALUE; a_target: LIST [TUPLE [name: READABLE_STRING_32; value: detachable READABLE_STRING_32]])
|
||||
-- Append value `v' to `a_target' as multiple string items
|
||||
do
|
||||
if attached {WSF_STRING} v as s then
|
||||
a_target.force ([s.name, s.value])
|
||||
elseif attached {ITERABLE [WSF_VALUE]} v as lst then
|
||||
across
|
||||
lst as c
|
||||
loop
|
||||
append_value_as_string_items_to (c.item, a_target)
|
||||
end
|
||||
else
|
||||
a_target.force ([v.name, v.string_representation])
|
||||
end
|
||||
end
|
||||
|
||||
feature -- Execution variables
|
||||
|
||||
execution_variable (a_name: READABLE_STRING_GENERAL): detachable ANY
|
||||
|
||||
Reference in New Issue
Block a user