From a9cc76e0efba7496909d613c75b81de6a9c5d979 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 30 Apr 2008 16:08:24 +0000 Subject: * Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. Thanks A_Biondi and Melanie! * This builds but might not work. JustinCC will examine.. it may work out of the box. --- .../Region/Communications/Local/LocalInventoryService.cs | 5 +++++ .../Region/Communications/OGS1/OGS1InventoryService.cs | 15 +++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'OpenSim/Region/Communications') diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index 175829b..0de00a1 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs @@ -95,6 +95,11 @@ namespace OpenSim.Region.Communications.Local AddItem(item); } + public override void UpdateInventoryItem(LLUUID userID, InventoryItemBase item) + { + UpdateItem(item); + } + public override void DeleteInventoryItem(LLUUID userID, InventoryItemBase item) { DeleteItem(item); diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 65f3ee3..5b72f0d 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -229,6 +229,21 @@ namespace OpenSim.Region.Communications.OGS1 } } + // TODO: this is a temporary workaround, the UpdateInventoryItem method need to be implemented + public void UpdateInventoryItem(LLUUID userID, InventoryItemBase item) + { + try + { + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/NewItem/", item); + } + catch (System.Net.WebException e) + { + m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory item operation failed, {0} {1}", + e.Source, e.Message); + } + } + /// /// /// -- cgit v1.1