On login, if a set of inventory folders doesn't exist for the user then a new set is created in the inventory database. Most likely still better to use some other script to populate the inventory database instead of relaying on this.
parent
5df851761a
commit
6c9e588acb
|
@ -63,6 +63,7 @@ namespace OpenSim.Grid.InventoryServer
|
||||||
|
|
||||||
public bool CreateUsersInventory(LLUUID user)
|
public bool CreateUsersInventory(LLUUID user)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine("Creating New Set of Inventory Folders for " + user.ToStringHyphenated());
|
||||||
CreateNewUserInventory(user);
|
CreateNewUserInventory(user);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Threading;
|
||||||
using Nwc.XmlRpc;
|
using Nwc.XmlRpc;
|
||||||
using libsecondlife;
|
using libsecondlife;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
@ -197,7 +198,14 @@ namespace OpenSim.Grid.UserServer
|
||||||
protected override InventoryData CreateInventoryData(LLUUID userID)
|
protected override InventoryData CreateInventoryData(LLUUID userID)
|
||||||
{
|
{
|
||||||
List<InventoryFolderBase> folders = SyncRestObjectPoster.BeginPostObject<LLUUID, List<InventoryFolderBase>>(m_config.InventoryUrl + "RootFolders/", userID);
|
List<InventoryFolderBase> folders = SyncRestObjectPoster.BeginPostObject<LLUUID, List<InventoryFolderBase>>(m_config.InventoryUrl + "RootFolders/", userID);
|
||||||
if (folders.Count > 0)
|
if (folders ==null | folders.Count == 0)
|
||||||
|
{
|
||||||
|
RestObjectPoster.BeginPostObject<LLUUID>(m_config.InventoryUrl + "CreateInventory/", userID);
|
||||||
|
Thread.Sleep(1000);
|
||||||
|
folders = SyncRestObjectPoster.BeginPostObject<LLUUID, List<InventoryFolderBase>>(m_config.InventoryUrl + "RootFolders/", userID);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(folders.Count >0)
|
||||||
{
|
{
|
||||||
LLUUID rootID = LLUUID.Zero;
|
LLUUID rootID = LLUUID.Zero;
|
||||||
ArrayList AgentInventoryArray = new ArrayList();
|
ArrayList AgentInventoryArray = new ArrayList();
|
||||||
|
|
Loading…
Reference in New Issue