aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Serialization
diff options
context:
space:
mode:
authorMelanie2012-01-12 17:52:29 +0000
committerMelanie2012-01-12 17:52:29 +0000
commit4492bc1bcd055ab5b6f187612462b14b6494fea9 (patch)
tree168e808c3931efc0e05f05ae60aafda6f0a4e946 /OpenSim/Region/Framework/Scenes/Serialization
parentRemove ViewObjectInventory method unsupported by core (diff)
parentAllow update of stored entries within User Management Module-this is needed f... (diff)
downloadopensim-SC_OLD-4492bc1bcd055ab5b6f187612462b14b6494fea9.zip
opensim-SC_OLD-4492bc1bcd055ab5b6f187612462b14b6494fea9.tar.gz
opensim-SC_OLD-4492bc1bcd055ab5b6f187612462b14b6494fea9.tar.bz2
opensim-SC_OLD-4492bc1bcd055ab5b6f187612462b14b6494fea9.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization')
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index 3f24991..c776fa5 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -54,7 +54,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
54 /// Deserialize a scene object from the original xml format 54 /// Deserialize a scene object from the original xml format
55 /// </summary> 55 /// </summary>
56 /// <param name="xmlData"></param> 56 /// <param name="xmlData"></param>
57 /// <returns></returns> 57 /// <returns>The scene object deserialized. Null on failure.</returns>
58 public static SceneObjectGroup FromOriginalXmlFormat(string xmlData) 58 public static SceneObjectGroup FromOriginalXmlFormat(string xmlData)
59 { 59 {
60 //m_log.DebugFormat("[SOG]: Starting deserialization of SOG"); 60 //m_log.DebugFormat("[SOG]: Starting deserialization of SOG");
@@ -1147,12 +1147,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1147 1147
1148 if (sop.CreatorData != null && sop.CreatorData != string.Empty) 1148 if (sop.CreatorData != null && sop.CreatorData != string.Empty)
1149 writer.WriteElementString("CreatorData", sop.CreatorData); 1149 writer.WriteElementString("CreatorData", sop.CreatorData);
1150 else if (options.ContainsKey("profile")) 1150 else if (options.ContainsKey("home"))
1151 { 1151 {
1152 if (m_UserManagement == null) 1152 if (m_UserManagement == null)
1153 m_UserManagement = sop.ParentGroup.Scene.RequestModuleInterface<IUserManagement>(); 1153 m_UserManagement = sop.ParentGroup.Scene.RequestModuleInterface<IUserManagement>();
1154 string name = m_UserManagement.GetUserName(sop.CreatorID); 1154 string name = m_UserManagement.GetUserName(sop.CreatorID);
1155 writer.WriteElementString("CreatorData", (string)options["profile"] + "/" + sop.CreatorID + ";" + name); 1155 writer.WriteElementString("CreatorData", (string)options["home"] + ";" + name);
1156 } 1156 }
1157 1157
1158 WriteUUID(writer, "FolderID", sop.FolderID, options); 1158 WriteUUID(writer, "FolderID", sop.FolderID, options);
@@ -1298,12 +1298,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1298 1298
1299 if (item.CreatorData != null && item.CreatorData != string.Empty) 1299 if (item.CreatorData != null && item.CreatorData != string.Empty)
1300 writer.WriteElementString("CreatorData", item.CreatorData); 1300 writer.WriteElementString("CreatorData", item.CreatorData);
1301 else if (options.ContainsKey("profile")) 1301 else if (options.ContainsKey("home"))
1302 { 1302 {
1303 if (m_UserManagement == null) 1303 if (m_UserManagement == null)
1304 m_UserManagement = scene.RequestModuleInterface<IUserManagement>(); 1304 m_UserManagement = scene.RequestModuleInterface<IUserManagement>();
1305 string name = m_UserManagement.GetUserName(item.CreatorID); 1305 string name = m_UserManagement.GetUserName(item.CreatorID);
1306 writer.WriteElementString("CreatorData", (string)options["profile"] + "/" + item.CreatorID + ";" + name); 1306 writer.WriteElementString("CreatorData", (string)options["home"] + ";" + name);
1307 } 1307 }
1308 1308
1309 writer.WriteElementString("Description", item.Description); 1309 writer.WriteElementString("Description", item.Description);