diff options
author | Melanie | 2010-03-03 02:07:03 +0000 |
---|---|---|
committer | Melanie | 2010-03-03 02:07:03 +0000 |
commit | 028a87fe37002e7a0611f66babf1deee46c83804 (patch) | |
tree | 387aec499fd60c2012bed8148e6a2ddc847c3d95 /OpenSim/Region/DataSnapshot | |
parent | Revert "test" (diff) | |
parent | Fixes Region.Framework tests. Although these tests don't fail, they need to b... (diff) | |
download | opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.zip opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.gz opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.bz2 opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.xz |
Merge branch 'master' into careminster-presence-refactor
This brings careminster on the level of master. To be tested
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | 18 | ||||
-rw-r--r-- | OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/DataSnapshot/LandSnapshot.cs | 7 |
3 files changed, 13 insertions, 27 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs index 4df9094..6949d7c 100644 --- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | |||
@@ -101,21 +101,9 @@ namespace OpenSim.Region.DataSnapshot | |||
101 | try | 101 | try |
102 | { | 102 | { |
103 | m_enabled = config.Configs["DataSnapshot"].GetBoolean("index_sims", m_enabled); | 103 | m_enabled = config.Configs["DataSnapshot"].GetBoolean("index_sims", m_enabled); |
104 | if (config.Configs["Startup"].GetBoolean("gridmode", false)) | 104 | IConfig conf = config.Configs["GridService"]; |
105 | { | 105 | if (conf != null) |
106 | m_gridinfo.Add( | 106 | m_gridinfo.Add("gridserverURL", conf.GetString("GridServerURI", "http://127.0.0.1:8003")); |
107 | "gridserverURL", | ||
108 | config.Configs["Network"].GetString( | ||
109 | "grid_server_url", "http://127.0.0.1:" + ConfigSettings.DefaultGridServerHttpPort.ToString())); | ||
110 | m_gridinfo.Add( | ||
111 | "userserverURL", | ||
112 | config.Configs["Network"].GetString( | ||
113 | "user_server_url", "http://127.0.0.1:" + ConfigSettings.DefaultUserServerHttpPort.ToString())); | ||
114 | m_gridinfo.Add( | ||
115 | "assetserverURL", | ||
116 | config.Configs["Network"].GetString( | ||
117 | "asset_server_url", "http://127.0.0.1:" + ConfigSettings.DefaultAssetServerHttpPort.ToString())); | ||
118 | } | ||
119 | 107 | ||
120 | m_gridinfo.Add( | 108 | m_gridinfo.Add( |
121 | "Name", config.Configs["DataSnapshot"].GetString("gridname", "the lost continent of hippo")); | 109 | "Name", config.Configs["DataSnapshot"].GetString("gridname", "the lost continent of hippo")); |
diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs index 5fff89f..8da9e8c 100644 --- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs | |||
@@ -29,9 +29,10 @@ using System; | |||
29 | using System.Xml; | 29 | using System.Xml; |
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications.Cache; | 32 | |
33 | using OpenSim.Region.DataSnapshot.Interfaces; | 33 | using OpenSim.Region.DataSnapshot.Interfaces; |
34 | using OpenSim.Region.Framework.Scenes; | 34 | using OpenSim.Region.Framework.Scenes; |
35 | using OpenSim.Services.Interfaces; | ||
35 | 36 | ||
36 | namespace OpenSim.Region.DataSnapshot.Providers | 37 | namespace OpenSim.Region.DataSnapshot.Providers |
37 | { | 38 | { |
@@ -55,21 +56,17 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
55 | //Now in DataSnapshotProvider module form! | 56 | //Now in DataSnapshotProvider module form! |
56 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); | 57 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); |
57 | 58 | ||
58 | UUID ownerid = m_scene.RegionInfo.MasterAvatarAssignedUUID; | 59 | UUID ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; |
59 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | ||
60 | ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
61 | |||
62 | CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerid); | ||
63 | 60 | ||
61 | UserAccount userInfo = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid); | ||
64 | //TODO: Change to query userserver about the master avatar UUID ? | 62 | //TODO: Change to query userserver about the master avatar UUID ? |
65 | String firstname; | 63 | String firstname; |
66 | String lastname; | 64 | String lastname; |
67 | 65 | ||
68 | if (userInfo != null) | 66 | if (userInfo != null) |
69 | { | 67 | { |
70 | UserProfileData userProfile = userInfo.UserProfile; | 68 | firstname = userInfo.FirstName; |
71 | firstname = userProfile.FirstName; | 69 | lastname = userInfo.LastName; |
72 | lastname = userProfile.SurName; | ||
73 | 70 | ||
74 | //TODO: Fix the marshalling system to have less copypasta gruntwork | 71 | //TODO: Fix the marshalling system to have less copypasta gruntwork |
75 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); | 72 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); |
diff --git a/OpenSim/Region/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/DataSnapshot/LandSnapshot.cs index 51eacef..64d29f2 100644 --- a/OpenSim/Region/DataSnapshot/LandSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/LandSnapshot.cs | |||
@@ -32,11 +32,12 @@ using System.Xml; | |||
32 | using log4net; | 32 | using log4net; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications.Cache; | 35 | |
36 | using OpenSim.Region.CoreModules.World.Land; | 36 | using OpenSim.Region.CoreModules.World.Land; |
37 | using OpenSim.Region.DataSnapshot.Interfaces; | 37 | using OpenSim.Region.DataSnapshot.Interfaces; |
38 | using OpenSim.Region.Framework.Interfaces; | 38 | using OpenSim.Region.Framework.Interfaces; |
39 | using OpenSim.Region.Framework.Scenes; | 39 | using OpenSim.Region.Framework.Scenes; |
40 | using OpenSim.Services.Interfaces; | ||
40 | 41 | ||
41 | namespace OpenSim.Region.DataSnapshot.Providers | 42 | namespace OpenSim.Region.DataSnapshot.Providers |
42 | { | 43 | { |
@@ -258,8 +259,8 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
258 | try | 259 | try |
259 | { | 260 | { |
260 | XmlNode username = nodeFactory.CreateNode(XmlNodeType.Element, "name", ""); | 261 | XmlNode username = nodeFactory.CreateNode(XmlNodeType.Element, "name", ""); |
261 | CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(userOwnerUUID); | 262 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, userOwnerUUID); |
262 | username.InnerText = profile.UserProfile.FirstName + " " + profile.UserProfile.SurName; | 263 | username.InnerText = account.FirstName + " " + account.LastName; |
263 | userblock.AppendChild(username); | 264 | userblock.AppendChild(username); |
264 | } | 265 | } |
265 | catch (Exception) | 266 | catch (Exception) |