aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie2010-01-10 22:41:42 +0000
committerMelanie2010-01-10 22:41:42 +0000
commit3c90d834eac382af5edf091e83aea1ffcce91792 (patch)
tree60662b0f13fab4e0d7a7ab93533e5e66edbecf68 /OpenSim/Framework
parent* Last reference to CommsManager.UserProfileCacheService removed (diff)
downloadopensim-SC_OLD-3c90d834eac382af5edf091e83aea1ffcce91792.zip
opensim-SC_OLD-3c90d834eac382af5edf091e83aea1ffcce91792.tar.gz
opensim-SC_OLD-3c90d834eac382af5edf091e83aea1ffcce91792.tar.bz2
opensim-SC_OLD-3c90d834eac382af5edf091e83aea1ffcce91792.tar.xz
Remove all references to master avatar, replacing with estate owner where
appropriate. This changes the behavior of the REST plugins and RemoteAdmin's region creation process.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/Clients/GridClient.cs5
-rw-r--r--OpenSim/Framework/RegionInfo.cs96
2 files changed, 1 insertions, 100 deletions
diff --git a/OpenSim/Framework/Communications/Clients/GridClient.cs b/OpenSim/Framework/Communications/Clients/GridClient.cs
index 4836556..0198d75 100644
--- a/OpenSim/Framework/Communications/Clients/GridClient.cs
+++ b/OpenSim/Framework/Communications/Clients/GridClient.cs
@@ -68,10 +68,7 @@ namespace OpenSim.Framework.Communications.Clients
68 GridParams["region_secret"] = regionInfo.regionSecret; 68 GridParams["region_secret"] = regionInfo.regionSecret;
69 GridParams["major_interface_version"] = VersionInfo.MajorInterfaceVersion.ToString(); 69 GridParams["major_interface_version"] = VersionInfo.MajorInterfaceVersion.ToString();
70 70
71 if (regionInfo.MasterAvatarAssignedUUID != UUID.Zero) 71 GridParams["master_avatar_uuid"] = regionInfo.EstateSettings.EstateOwner.ToString();
72 GridParams["master_avatar_uuid"] = regionInfo.MasterAvatarAssignedUUID.ToString();
73 else
74 GridParams["master_avatar_uuid"] = regionInfo.EstateSettings.EstateOwner.ToString();
75 72
76 // Package into an XMLRPC Request 73 // Package into an XMLRPC Request
77 ArrayList SendParams = new ArrayList(); 74 ArrayList SendParams = new ArrayList();
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 88b62e0..0a826a6 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -54,10 +54,6 @@ namespace OpenSim.Framework
54 private RegionSettings m_regionSettings; 54 private RegionSettings m_regionSettings;
55 // private IConfigSource m_configSource = null; 55 // private IConfigSource m_configSource = null;
56 56
57 public UUID MasterAvatarAssignedUUID = UUID.Zero;
58 public string MasterAvatarFirstName = String.Empty;
59 public string MasterAvatarLastName = String.Empty;
60 public string MasterAvatarSandboxPassword = String.Empty;
61 public UUID originRegionID = UUID.Zero; 57 public UUID originRegionID = UUID.Zero;
62 public string proxyUrl = ""; 58 public string proxyUrl = "";
63 public int ProxyOffset = 0; 59 public int ProxyOffset = 0;
@@ -488,40 +484,6 @@ namespace OpenSim.Framework
488 m_externalHostName = externalName; 484 m_externalHostName = externalName;
489 485
490 486
491 // Master avatar cruft
492 //
493 string masterAvatarUUID;
494 if (!creatingNew)
495 {
496 masterAvatarUUID = config.GetString("MasterAvatarUUID", UUID.Zero.ToString());
497 MasterAvatarFirstName = config.GetString("MasterAvatarFirstName", String.Empty);
498 MasterAvatarLastName = config.GetString("MasterAvatarLastName", String.Empty);
499 MasterAvatarSandboxPassword = config.GetString("MasterAvatarSandboxPassword", String.Empty);
500 }
501 else
502 {
503 masterAvatarUUID = MainConsole.Instance.CmdPrompt("Master Avatar UUID", UUID.Zero.ToString());
504 if (masterAvatarUUID != UUID.Zero.ToString())
505 {
506 config.Set("MasterAvatarUUID", masterAvatarUUID);
507 }
508 else
509 {
510 MasterAvatarFirstName = MainConsole.Instance.CmdPrompt("Master Avatar first name (enter for no master avatar)", String.Empty);
511 if (MasterAvatarFirstName != String.Empty)
512 {
513 MasterAvatarLastName = MainConsole.Instance.CmdPrompt("Master Avatar last name", String.Empty);
514 MasterAvatarSandboxPassword = MainConsole.Instance.CmdPrompt("Master Avatar sandbox password", String.Empty);
515
516 config.Set("MasterAvatarFirstName", MasterAvatarFirstName);
517 config.Set("MasterAvatarLastName", MasterAvatarLastName);
518 config.Set("MasterAvatarSandboxPassword", MasterAvatarSandboxPassword);
519 }
520 }
521 }
522
523 MasterAvatarAssignedUUID = new UUID(masterAvatarUUID);
524
525 m_regionType = config.GetString("RegionType", String.Empty); 487 m_regionType = config.GetString("RegionType", String.Empty);
526 488
527 // Prim stuff 489 // Prim stuff
@@ -564,20 +526,6 @@ namespace OpenSim.Framework
564 526
565 config.Set("ExternalHostName", m_externalHostName); 527 config.Set("ExternalHostName", m_externalHostName);
566 528
567 if (MasterAvatarAssignedUUID != UUID.Zero)
568 {
569 config.Set("MasterAvatarUUID", MasterAvatarAssignedUUID.ToString());
570 }
571 else if (MasterAvatarFirstName != String.Empty && MasterAvatarLastName != String.Empty)
572 {
573 config.Set("MasterAvatarFirstName", MasterAvatarFirstName);
574 config.Set("MasterAvatarLastName", MasterAvatarLastName);
575 }
576 if (MasterAvatarSandboxPassword != String.Empty)
577 {
578 config.Set("MasterAvatarSandboxPassword", MasterAvatarSandboxPassword);
579 }
580
581 if (m_nonphysPrimMax != 0) 529 if (m_nonphysPrimMax != 0)
582 config.Set("NonphysicalPrimMax", m_nonphysPrimMax); 530 config.Set("NonphysicalPrimMax", m_nonphysPrimMax);
583 if (m_physPrimMax != 0) 531 if (m_physPrimMax != 0)
@@ -651,17 +599,6 @@ namespace OpenSim.Framework
651 configMember.addConfigurationOption("external_host_name", 599 configMember.addConfigurationOption("external_host_name",
652 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 600 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
653 "External Host Name", m_externalHostName, true); 601 "External Host Name", m_externalHostName, true);
654 configMember.addConfigurationOption("master_avatar_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
655 "Master Avatar UUID", MasterAvatarAssignedUUID.ToString(), true);
656 configMember.addConfigurationOption("master_avatar_first",
657 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
658 "First Name of Master Avatar", MasterAvatarFirstName, true);
659 configMember.addConfigurationOption("master_avatar_last",
660 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
661 "Last Name of Master Avatar", MasterAvatarLastName, true);
662 configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
663 "(Sandbox Mode Only)Password for Master Avatar account",
664 MasterAvatarSandboxPassword, true);
665 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID, 602 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
666 "Last Map UUID", lastMapUUID.ToString(), true); 603 "Last Map UUID", lastMapUUID.ToString(), true);
667 configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 604 configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
@@ -711,22 +648,6 @@ namespace OpenSim.Framework
711 configMember.addConfigurationOption("external_host_name", 648 configMember.addConfigurationOption("external_host_name",
712 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 649 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
713 "External Host Name", "127.0.0.1", false); 650 "External Host Name", "127.0.0.1", false);
714 configMember.addConfigurationOption("master_avatar_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
715 "Master Avatar UUID", UUID.Zero.ToString(), true);
716 configMember.addConfigurationOption("master_avatar_first",
717 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
718 "First Name of Master Avatar", "Test", false,
719 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
720 shouldMasterAvatarDetailsBeAsked);
721 configMember.addConfigurationOption("master_avatar_last",
722 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
723 "Last Name of Master Avatar", "User", false,
724 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
725 shouldMasterAvatarDetailsBeAsked);
726 configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
727 "(Sandbox Mode Only)Password for Master Avatar account", "test", false,
728 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
729 shouldMasterAvatarDetailsBeAsked);
730 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID, 651 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
731 "Last Map UUID", lastMapUUID.ToString(), true); 652 "Last Map UUID", lastMapUUID.ToString(), true);
732 653
@@ -752,11 +673,6 @@ namespace OpenSim.Framework
752 "Region Type", String.Empty, true); 673 "Region Type", String.Empty, true);
753 } 674 }
754 675
755 public bool shouldMasterAvatarDetailsBeAsked(string configuration_key)
756 {
757 return MasterAvatarAssignedUUID == UUID.Zero;
758 }
759
760 public bool handleIncomingConfiguration(string configuration_key, object configuration_result) 676 public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
761 { 677 {
762 switch (configuration_key) 678 switch (configuration_key)
@@ -797,18 +713,6 @@ namespace OpenSim.Framework
797 m_externalHostName = Util.GetLocalHost().ToString(); 713 m_externalHostName = Util.GetLocalHost().ToString();
798 } 714 }
799 break; 715 break;
800 case "master_avatar_uuid":
801 MasterAvatarAssignedUUID = (UUID) configuration_result;
802 break;
803 case "master_avatar_first":
804 MasterAvatarFirstName = (string) configuration_result;
805 break;
806 case "master_avatar_last":
807 MasterAvatarLastName = (string) configuration_result;
808 break;
809 case "master_avatar_pass":
810 MasterAvatarSandboxPassword = (string)configuration_result;
811 break;
812 case "lastmap_uuid": 716 case "lastmap_uuid":
813 lastMapUUID = (UUID)configuration_result; 717 lastMapUUID = (UUID)configuration_result;
814 break; 718 break;