From a0ebdb6098dae4577254a1e7ea1eb894d2270402 Mon Sep 17 00:00:00 2001 From: jvelilla Date: Tue, 2 Oct 2012 07:12:42 -0300 Subject: [PATCH] Fixed wsf_extension.ecf path, in the example RestBucksCRUD. Replace the assigment attempt with attached syntax --- examples/restbucksCRUD/restbucks-safe.ecf | 2 +- .../restbucksCRUD/src/domain/json_order_converter.e | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/restbucksCRUD/restbucks-safe.ecf b/examples/restbucksCRUD/restbucks-safe.ecf index b0e4dcb7..5e884262 100644 --- a/examples/restbucksCRUD/restbucks-safe.ecf +++ b/examples/restbucksCRUD/restbucks-safe.ecf @@ -25,7 +25,7 @@ - + diff --git a/examples/restbucksCRUD/src/domain/json_order_converter.e b/examples/restbucksCRUD/src/domain/json_order_converter.e index 31e41757..634628da 100644 --- a/examples/restbucksCRUD/src/domain/json_order_converter.e +++ b/examples/restbucksCRUD/src/domain/json_order_converter.e @@ -34,9 +34,15 @@ feature -- Conversion do is_valid_from_json := True - s_id ?= json.object (j.item (id_key), Void) - s_location ?= json.object (j.item (location_key), Void) - s_status ?= json.object (j.item (status_key), Void) + if attached {STRING_32} json.object (j.item (id_key), Void) as l_id then + s_id := s_id + end + if attached {STRING_32} json.object (j.item (location_key), Void) as l_location then + s_location := l_location + end + if attached {STRING_32} json.object (j.item (status_key), Void) as l_status then + s_status := l_status + end create o.make ("", s_location, s_status)