Some more hammering on the head of the obsolete rest inventory handlers, just to make this work.

This commit is contained in:
Diva Canto
2009-08-11 14:52:17 -07:00
parent bd7ff803fe
commit 41839efcc5
2 changed files with 17 additions and 13 deletions

View File

@@ -85,7 +85,7 @@ namespace OpenSim.Server.Handlers.Inventory
"POST", "/GetInventory/", GetUserInventory, CheckAuthSession));
m_httpServer.AddStreamHandler(
new RestDeserialiseSecureHandler<Guid, Dictionary<AssetType, InventoryFolderBase>>(
new RestDeserialiseSecureHandler<Guid, List<InventoryFolderBase>>(
"POST", "/SystemFolders/", GetSystemFolders, CheckAuthSession));
m_httpServer.AddStreamHandler(
@@ -163,10 +163,10 @@ namespace OpenSim.Server.Handlers.Inventory
return m_InventoryService.GetUserInventory(userID);
}
public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(Guid guid)
public List<InventoryFolderBase> GetSystemFolders(Guid guid)
{
UUID userID = new UUID(guid);
return GetSystemFolders(userID);
return new List<InventoryFolderBase>(GetSystemFolders(userID).Values);
}
// This shouldn't be here, it should be in the inventory service.