diff options
author | Snoopy Pfeffer | 2012-02-03 23:53:18 +0100 |
---|---|---|
committer | Snoopy Pfeffer | 2012-02-03 23:53:18 +0100 |
commit | 83ef13a79add392247ae8e36b419fdc8bc8c6b8b (patch) | |
tree | d0b1198b0624d4d0dab2db936a60e29acd30980f | |
parent | Corrected console help texts for "save iar" (diff) | |
download | opensim-SC-83ef13a79add392247ae8e36b419fdc8bc8c6b8b.zip opensim-SC-83ef13a79add392247ae8e36b419fdc8bc8c6b8b.tar.gz opensim-SC-83ef13a79add392247ae8e36b419fdc8bc8c6b8b.tar.bz2 opensim-SC-83ef13a79add392247ae8e36b419fdc8bc8c6b8b.tar.xz |
Changed save oar and save iar parameter -p|--profile to -h|--home, including corresponding RemoteAdmin parameter
5 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 7f1a0ed..24570d6 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -1410,9 +1410,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
1410 | // options["version"] = (string)requestData["version"]; | 1410 | // options["version"] = (string)requestData["version"]; |
1411 | //} | 1411 | //} |
1412 | 1412 | ||
1413 | if (requestData.Contains("profile")) | 1413 | if (requestData.Contains("home")) |
1414 | { | 1414 | { |
1415 | options["profile"] = (string)requestData["profile"]; | 1415 | options["home"] = (string)requestData["home"]; |
1416 | } | 1416 | } |
1417 | 1417 | ||
1418 | if ((string)requestData["noassets"] == "true") | 1418 | if ((string)requestData["noassets"] == "true") |
diff --git a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs index f138437..b351703 100644 --- a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs +++ b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs | |||
@@ -305,14 +305,14 @@ namespace OpenSim.Framework.Serialization.External | |||
305 | writer.WriteEndElement(); | 305 | writer.WriteEndElement(); |
306 | if (options.ContainsKey("creators") && inventoryItem.CreatorData != null && inventoryItem.CreatorData != string.Empty) | 306 | if (options.ContainsKey("creators") && inventoryItem.CreatorData != null && inventoryItem.CreatorData != string.Empty) |
307 | writer.WriteElementString("CreatorData", inventoryItem.CreatorData); | 307 | writer.WriteElementString("CreatorData", inventoryItem.CreatorData); |
308 | else if (options.ContainsKey("profile")) | 308 | else if (options.ContainsKey("home")) |
309 | { | 309 | { |
310 | if (userAccountService != null) | 310 | if (userAccountService != null) |
311 | { | 311 | { |
312 | UserAccount account = userAccountService.GetUserAccount(UUID.Zero, inventoryItem.CreatorIdAsUuid); | 312 | UserAccount account = userAccountService.GetUserAccount(UUID.Zero, inventoryItem.CreatorIdAsUuid); |
313 | if (account != null) | 313 | if (account != null) |
314 | { | 314 | { |
315 | writer.WriteElementString("CreatorData", (string)options["profile"] + "/" + inventoryItem.CreatorIdAsUuid + ";" + account.FirstName + " " + account.LastName); | 315 | writer.WriteElementString("CreatorData", (string)options["home"] + "/" + inventoryItem.CreatorIdAsUuid + ";" + account.FirstName + " " + account.LastName); |
316 | } | 316 | } |
317 | writer.WriteElementString("CreatorID", inventoryItem.CreatorId); | 317 | writer.WriteElementString("CreatorID", inventoryItem.CreatorId); |
318 | } | 318 | } |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 36ecb3b..5238325 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -415,7 +415,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
415 | { | 415 | { |
416 | int majorVersion, minorVersion; | 416 | int majorVersion, minorVersion; |
417 | 417 | ||
418 | if (options.ContainsKey("profile")) | 418 | if (options.ContainsKey("home")) |
419 | { | 419 | { |
420 | majorVersion = 1; | 420 | majorVersion = 1; |
421 | minorVersion = 2; | 421 | minorVersion = 2; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs index 09b4ba6..a81f36c 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs | |||
@@ -122,7 +122,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
122 | 122 | ||
123 | scene.AddCommand( | 123 | scene.AddCommand( |
124 | this, "save iar", | 124 | this, "save iar", |
125 | "save iar [-p|--profile=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [-c|--creators] [-v|--verbose]", | 125 | "save iar [-h|--home=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [-c|--creators] [-v|--verbose]", |
126 | "Save user inventory archive (IAR).", | 126 | "Save user inventory archive (IAR).", |
127 | "<first> is the user's first name." + Environment.NewLine | 127 | "<first> is the user's first name." + Environment.NewLine |
128 | + "<last> is the user's last name." + Environment.NewLine | 128 | + "<last> is the user's last name." + Environment.NewLine |
@@ -396,7 +396,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
396 | 396 | ||
397 | OptionSet ops = new OptionSet(); | 397 | OptionSet ops = new OptionSet(); |
398 | //ops.Add("v|version=", delegate(string v) { options["version"] = v; }); | 398 | //ops.Add("v|version=", delegate(string v) { options["version"] = v; }); |
399 | ops.Add("p|profile=", delegate(string v) { options["profile"] = v; }); | 399 | ops.Add("h|home=", delegate(string v) { options["home"] = v; }); |
400 | ops.Add("v|verbose", delegate(string v) { options["verbose"] = v; }); | 400 | ops.Add("v|verbose", delegate(string v) { options["verbose"] = v; }); |
401 | ops.Add("c|creators", delegate(string v) { options["creators"] = v; }); | 401 | ops.Add("c|creators", delegate(string v) { options["creators"] = v; }); |
402 | ops.Add("noassets", delegate(string v) { options["noassets"] = v != null; }); | 402 | ops.Add("noassets", delegate(string v) { options["noassets"] = v != null; }); |
@@ -408,13 +408,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
408 | if (mainParams.Count < 6) | 408 | if (mainParams.Count < 6) |
409 | { | 409 | { |
410 | m_log.Error( | 410 | m_log.Error( |
411 | "[INVENTORY ARCHIVER]: usage is save iar [-p|--profile=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>] [-c|--creators] [-v|--verbose]"); | 411 | "[INVENTORY ARCHIVER]: usage is save iar [-h|--home=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>] [-c|--creators] [-v|--verbose]"); |
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | 414 | ||
415 | m_log.Info("[INVENTORY ARCHIVER]: PLEASE NOTE THAT THIS FACILITY IS EXPERIMENTAL. BUG REPORTS WELCOME."); | 415 | m_log.Info("[INVENTORY ARCHIVER]: PLEASE NOTE THAT THIS FACILITY IS EXPERIMENTAL. BUG REPORTS WELCOME."); |
416 | if (options.ContainsKey("profile")) | 416 | if (options.ContainsKey("home")) |
417 | m_log.WarnFormat("[INVENTORY ARCHIVER]: Please be aware that inventory archives with creator information are not compatible with OpenSim 0.7.0.2 and earlier. Do not use the -profile option if you want to produce a compatible IAR"); | 417 | m_log.WarnFormat("[INVENTORY ARCHIVER]: Please be aware that inventory archives with creator information are not compatible with OpenSim 0.7.0.2 and earlier. Do not use the -home option if you want to produce a compatible IAR"); |
418 | 418 | ||
419 | string firstName = mainParams[2]; | 419 | string firstName = mainParams[2]; |
420 | string lastName = mainParams[3]; | 420 | string lastName = mainParams[3]; |
diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs index 948aac8..8e29e3c 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs | |||
@@ -310,10 +310,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
310 | 310 | ||
311 | protected AssetBase PostProcess(AssetBase asset) | 311 | protected AssetBase PostProcess(AssetBase asset) |
312 | { | 312 | { |
313 | if (asset.Type == (sbyte)AssetType.Object && asset.Data != null && m_options.ContainsKey("profile")) | 313 | if (asset.Type == (sbyte)AssetType.Object && asset.Data != null && m_options.ContainsKey("home")) |
314 | { | 314 | { |
315 | //m_log.DebugFormat("[ARCHIVER]: Rewriting object data for {0}", asset.ID); | 315 | //m_log.DebugFormat("[ARCHIVER]: Rewriting object data for {0}", asset.ID); |
316 | string xml = ExternalRepresentationUtils.RewriteSOP(Utils.BytesToString(asset.Data), m_options["profile"].ToString(), m_userAccountService, m_scopeID); | 316 | string xml = ExternalRepresentationUtils.RewriteSOP(Utils.BytesToString(asset.Data), m_options["home"].ToString(), m_userAccountService, m_scopeID); |
317 | asset.Data = Utils.StringToBytes(xml); | 317 | asset.Data = Utils.StringToBytes(xml); |
318 | } | 318 | } |
319 | return asset; | 319 | return asset; |