diff options
author | Dr Scofield | 2009-07-03 15:36:47 +0000 |
---|---|---|
committer | Dr Scofield | 2009-07-03 15:36:47 +0000 |
commit | 840f5f94859982413604a955cd47f9428b3a7c52 (patch) | |
tree | a1a8ca150c9a14ce3789067cc7152c5ce65b85e3 /OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |
parent | Thank you kindly, AnakinLohner, for a patch that addresses: (diff) | |
download | opensim-SC-840f5f94859982413604a955cd47f9428b3a7c52.zip opensim-SC-840f5f94859982413604a955cd47f9428b3a7c52.tar.gz opensim-SC-840f5f94859982413604a955cd47f9428b3a7c52.tar.bz2 opensim-SC-840f5f94859982413604a955cd47f9428b3a7c52.tar.xz |
- adding a Persistent flag to RegionInfo
- adding EstateSettings.Save() to RemoteAdmin ACL code (invoked only when region is persistent)
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index bcab2d1..23b1cc9 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -615,6 +615,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
615 | m_log.DebugFormat("[RADMIN] CreateRegion: persisting region {0} to {1}", | 615 | m_log.DebugFormat("[RADMIN] CreateRegion: persisting region {0} to {1}", |
616 | region.RegionID, regionXmlPath); | 616 | region.RegionID, regionXmlPath); |
617 | region.SaveRegionToFile("dynamic region", regionXmlPath); | 617 | region.SaveRegionToFile("dynamic region", regionXmlPath); |
618 | } | ||
619 | else | ||
620 | { | ||
621 | region.Persistent = false; | ||
618 | } | 622 | } |
619 | 623 | ||
620 | // Create the region and perform any initial initialization | 624 | // Create the region and perform any initial initialization |
@@ -785,7 +789,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
785 | // Modify access | 789 | // Modify access |
786 | scene.RegionInfo.EstateSettings.PublicAccess = | 790 | scene.RegionInfo.EstateSettings.PublicAccess = |
787 | getBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess); | 791 | getBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess); |
788 | scene.RegionInfo.EstateSettings.Save(); | 792 | if (scene.RegionInfo.Persistent) |
793 | scene.RegionInfo.EstateSettings.Save(); | ||
789 | 794 | ||
790 | if (requestData.ContainsKey("enable_voice")) | 795 | if (requestData.ContainsKey("enable_voice")) |
791 | { | 796 | { |
@@ -2197,6 +2202,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
2197 | 2202 | ||
2198 | Scene s = m_app.SceneManager.CurrentScene; | 2203 | Scene s = m_app.SceneManager.CurrentScene; |
2199 | s.RegionInfo.EstateSettings.EstateAccess = new UUID[]{}; | 2204 | s.RegionInfo.EstateSettings.EstateAccess = new UUID[]{}; |
2205 | if (s.RegionInfo.Persistent) | ||
2206 | s.RegionInfo.EstateSettings.Save(); | ||
2200 | 2207 | ||
2201 | } | 2208 | } |
2202 | catch (Exception e) | 2209 | catch (Exception e) |
@@ -2278,6 +2285,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
2278 | } | 2285 | } |
2279 | } | 2286 | } |
2280 | s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray(); | 2287 | s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray(); |
2288 | if (s.RegionInfo.Persistent) | ||
2289 | s.RegionInfo.EstateSettings.Save(); | ||
2281 | } | 2290 | } |
2282 | 2291 | ||
2283 | responseData["added"] = addk; | 2292 | responseData["added"] = addk; |
@@ -2361,6 +2370,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
2361 | } | 2370 | } |
2362 | } | 2371 | } |
2363 | s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray(); | 2372 | s.RegionInfo.EstateSettings.EstateAccess = acl.ToArray(); |
2373 | if (s.RegionInfo.Persistent) | ||
2374 | s.RegionInfo.EstateSettings.Save(); | ||
2364 | } | 2375 | } |
2365 | 2376 | ||
2366 | responseData["removed"] = remk; | 2377 | responseData["removed"] = remk; |