From 18f9f1410d45dc0b81cd6b7527fea0db0661d203 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 18 Mar 2008 18:19:44 +0000 Subject: * Just inserting some exploratory comments into inventory code --- .../Communications/Cache/UserProfileCacheService.cs | 12 ++++++++++++ OpenSim/Framework/Communications/InventoryServiceBase.cs | 4 ++++ 2 files changed, 16 insertions(+) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 17d9ae4..fcfb53a 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -133,6 +133,18 @@ namespace OpenSim.Framework.Communications.Cache } } + /// + /// Handle a client request to update the inventory folder + /// + /// FIXME: We call add new inventory folder because in the data layer, we happen to use an SQL REPLACE + /// so this will work to rename an existing folder. Needless to say, to rely on this is very confusing, + /// and needs to be changed. + /// + /// + /// + /// + /// + /// public void HandleUpdateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID) { diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index d4a501c..c73d45c 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -128,6 +128,7 @@ namespace OpenSim.Framework.Communications } } + // See IInventoryServices public virtual bool HasInventoryForUser(LLUUID userID) { return false; @@ -200,6 +201,9 @@ namespace OpenSim.Framework.Communications protected void AddFolder(InventoryFolderBase folder) { + m_log.DebugFormat( + "[INVENTORY SERVICE BASE]: Adding folder {0}, {1} to {2}", folder.name, folder.folderID, folder.parentID); + foreach (KeyValuePair plugin in m_plugins) { plugin.Value.addInventoryFolder(folder); -- cgit v1.1