From 252b48fb3e0905e6b21648e818aebd091e8532a8 Mon Sep 17 00:00:00 2001
From: MW
Date: Tue, 21 Aug 2007 13:21:03 +0000
Subject: Can now turn on/off server side permission checking (on prim editing
etc) from the opensim.ini file. Just add a line to the Startup section like :
serverside_object_permissions = true Changes /editing that are made to
clothing/ body parts in your inventory should now be saved between logins/
restarts.
---
.../Communications/Cache/AssetTransactions.cs | 19 +++++++++++++++++++
.../Communications/Cache/LibraryRootFolder.cs | 4 ++++
.../Communications/Cache/UserProfileCache.cs | 11 -----------
3 files changed, 23 insertions(+), 11 deletions(-)
(limited to 'OpenSim/Framework/Communications/Cache')
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
index addd20a..4cde5f6 100644
--- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
@@ -103,6 +103,15 @@ namespace OpenSim.Framework.Communications.Caches
}
}
+ public AssetBase GetTransactionAsset(LLUUID transactionID)
+ {
+ if (this.XferUploaders.ContainsKey(transactionID))
+ {
+ return XferUploaders[transactionID].GetAssetData();
+ }
+ return null;
+ }
+
// Nested Types
public class AssetCapsUploader
{
@@ -298,6 +307,7 @@ namespace OpenSim.Framework.Communications.Caches
private void DoCreateItem()
{
+ //really need to fix this call, if lbsa71 saw this he would die.
this.m_userTransactions.Manager.CommsManager.AssetCache.AddAsset(this.Asset);
CachedUserInfo userInfo = m_userTransactions.Manager.CommsManager.UserProfiles.GetUserDetails(ourClient.AgentId);
if (userInfo != null)
@@ -324,6 +334,15 @@ namespace OpenSim.Framework.Communications.Caches
{
}
+
+ public AssetBase GetAssetData()
+ {
+ if (m_finished)
+ {
+ return this.Asset;
+ }
+ return null;
+ }
}
public class NoteCardCapsUpdate
diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
index 6d85477..deef028 100644
--- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
+++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
@@ -9,6 +9,10 @@ using Nini.Config;
namespace OpenSim.Framework.Communications.Caches
{
+ ///
+ /// Basically a hack to give us a Inventory library while we don't have a inventory server
+ /// once the server is fully implemented then should read the data from that
+ ///
public class LibraryRootFolder : InventoryFolder
{
private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000");
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs
index 02c5f65..a599a19 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs
@@ -182,17 +182,6 @@ namespace OpenSim.Framework.Communications.Caches
private void RequestInventoryForUser(LLUUID userID, CachedUserInfo userInfo)
{
this.m_parent.InventoryServer.RequestInventoryForUser(userID, userInfo.FolderReceive, userInfo.ItemReceive);
-
- //for now we manually create the root folder,
- // but should be requesting all inventory from inventory server.
- /* InventoryFolder folderInfo = new InventoryFolder();
- folderInfo.agentID = userID;
- folderInfo.folderID = userInfo.UserProfile.rootInventoryFolderID;
- folderInfo.name = "My Inventory";
- folderInfo.parentID = LLUUID.Zero;
- folderInfo.type = 8;
- folderInfo.version = 1;
- userInfo.FolderReceive(userID, folderInfo);*/
}
///
--
cgit v1.1