mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Merge branch 'master' into careminster
This commit is contained in:
@@ -232,7 +232,26 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
/// <returns></returns>
|
||||
public Dictionary<UUID, InventoryFolderImpl> RequestSelfAndDescendentFolders()
|
||||
{
|
||||
return libraryFolders;
|
||||
Dictionary<UUID, InventoryFolderImpl> fs = new Dictionary<UUID, InventoryFolderImpl>();
|
||||
fs.Add(ID, this);
|
||||
List<InventoryFolderImpl> fis = TraverseFolder(this);
|
||||
foreach (InventoryFolderImpl f in fis)
|
||||
{
|
||||
fs.Add(f.ID, f);
|
||||
}
|
||||
//return libraryFolders;
|
||||
return fs;
|
||||
}
|
||||
|
||||
private List<InventoryFolderImpl> TraverseFolder(InventoryFolderImpl node)
|
||||
{
|
||||
List<InventoryFolderImpl> folders = node.RequestListOfFolderImpls();
|
||||
List<InventoryFolderImpl> subs = new List<InventoryFolderImpl>();
|
||||
foreach (InventoryFolderImpl f in folders)
|
||||
subs.AddRange(TraverseFolder(f));
|
||||
|
||||
folders.AddRange(subs);
|
||||
return folders;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,15 +322,15 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
HandleRequest(req, resp);
|
||||
}
|
||||
|
||||
public void ConvertIHttpClientContextToOSHttp(object stateinfo)
|
||||
{
|
||||
HttpServerContextObj objstate = (HttpServerContextObj)stateinfo;
|
||||
// public void ConvertIHttpClientContextToOSHttp(object stateinfo)
|
||||
// {
|
||||
// HttpServerContextObj objstate = (HttpServerContextObj)stateinfo;
|
||||
|
||||
OSHttpRequest request = objstate.oreq;
|
||||
OSHttpResponse resp = objstate.oresp;
|
||||
// OSHttpRequest request = objstate.oreq;
|
||||
// OSHttpResponse resp = objstate.oresp;
|
||||
|
||||
HandleRequest(request,resp);
|
||||
}
|
||||
// HandleRequest(request,resp);
|
||||
// }
|
||||
|
||||
public virtual void HandleRequest(OSHttpRequest request, OSHttpResponse response)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user