mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Simplify database setup and remove migration problems by moving all sqlite config-include settings to a separate file for standalone
Update information in StandaloneCommon.ini.example to reflect this Remove ISharedRegionModule interfaces from all SimianGrid connector classes temporarily since this stopped standalone from working (due to absence of AssetURI settings, etc.). Solution here may be to create separate region module connectors as done by local/grid/hypergrid so that loading can be controlled via include files Or otherwise work out how to stop these modules from being loaded for all OpenSim invocations
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// Connects to the SimianGrid asset service
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianAssetServiceConnector : IAssetService, ISharedRegionModule
|
||||
public class SimianAssetServiceConnector : IAssetService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// Connects authentication/authorization to the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianAuthenticationServiceConnector : IAuthenticationService, ISharedRegionModule
|
||||
public class SimianAuthenticationServiceConnector : IAuthenticationService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// Connects avatar appearance data to the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianAvatarServiceConnector : IAvatarService, ISharedRegionModule
|
||||
public class SimianAvatarServiceConnector : IAvatarService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// Stores and retrieves friend lists from the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianFriendsServiceConnector : IFriendsService, ISharedRegionModule
|
||||
public class SimianFriendsServiceConnector : IFriendsService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianGridServiceConnector : IGridService, ISharedRegionModule
|
||||
public class SimianGridServiceConnector : IGridService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// Connects avatar inventories to the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianInventoryServiceConnector : IInventoryService, ISharedRegionModule
|
||||
public class SimianInventoryServiceConnector : IInventoryService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// message routing) to the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianPresenceServiceConnector : IPresenceService, ISharedRegionModule
|
||||
public class SimianPresenceServiceConnector : IPresenceService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianProfiles : INonSharedRegionModule
|
||||
public class SimianProfiles
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
/// users) to the SimianGrid backend
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
|
||||
public class SimianUserAccountServiceConnector : IUserAccountService, ISharedRegionModule
|
||||
public class SimianUserAccountServiceConnector : IUserAccountService
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace OpenSim.Tests.Common.Mock
|
||||
{
|
||||
public class MockUserAccountService : IUserAccountService
|
||||
{
|
||||
|
||||
public MockUserAccountService(IConfigSource config) {}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID) { return new UserAccount(); }
|
||||
|
||||
@@ -215,6 +215,9 @@ namespace OpenSim.Tests.Common.Setup
|
||||
testScene.PhysicsScene
|
||||
= physicsPluginManager.GetPhysicsScene("basicphysics", "ZeroMesher", new IniConfigSource(), "test");
|
||||
|
||||
// It's really not a good idea to use static variables as they carry over between tests, leading to
|
||||
// problems that are extremely hard to debug. Really, these static fields need to be eliminated -
|
||||
// tests using multiple regions that need to share modules need to find another solution.
|
||||
m_assetService = null;
|
||||
m_inventoryService = null;
|
||||
m_gridService = null;
|
||||
|
||||
Reference in New Issue
Block a user