diff options
author | Justin Clark-Casey (justincc) | 2012-02-03 23:48:12 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-02-03 23:48:12 +0000 |
commit | 2b6c5fcb3115fa6b963a536f34bd4a4a1a64c598 (patch) | |
tree | 95acd2d2fc13dd77637549d8ce1f0ba78d4eb10d /OpenSim/Region/CoreModules | |
parent | Change SceneObjectSerializer to use common ExternalRepresentationUtils.Execut... (diff) | |
parent | Merge branch 'master' of ssh://snoopy@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-2b6c5fcb3115fa6b963a536f34bd4a4a1a64c598.zip opensim-SC_OLD-2b6c5fcb3115fa6b963a536f34bd4a4a1a64c598.tar.gz opensim-SC_OLD-2b6c5fcb3115fa6b963a536f34bd4a4a1a64c598.tar.bz2 opensim-SC_OLD-2b6c5fcb3115fa6b963a536f34bd4a4a1a64c598.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
4 files changed, 10 insertions, 8 deletions
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; |
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 2e1487f..c303d6d 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -80,6 +80,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
80 | GetEstateFlags(), | 80 | GetEstateFlags(), |
81 | sun, | 81 | sun, |
82 | Scene.RegionInfo.RegionSettings.Covenant, | 82 | Scene.RegionInfo.RegionSettings.Covenant, |
83 | (uint) Scene.RegionInfo.RegionSettings.CovenantChangedDateTime, | ||
83 | Scene.RegionInfo.EstateSettings.AbuseEmail, | 84 | Scene.RegionInfo.EstateSettings.AbuseEmail, |
84 | estateOwner); | 85 | estateOwner); |
85 | 86 | ||
@@ -268,6 +269,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
268 | // remoteClient.Name, estateCovenantID); | 269 | // remoteClient.Name, estateCovenantID); |
269 | 270 | ||
270 | Scene.RegionInfo.RegionSettings.Covenant = estateCovenantID; | 271 | Scene.RegionInfo.RegionSettings.Covenant = estateCovenantID; |
272 | Scene.RegionInfo.RegionSettings.CovenantChangedDateTime = Util.UnixTimeSinceEpoch(); | ||
271 | Scene.RegionInfo.RegionSettings.Save(); | 273 | Scene.RegionInfo.RegionSettings.Save(); |
272 | TriggerRegionInfoChange(); | 274 | TriggerRegionInfoChange(); |
273 | } | 275 | } |