From f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 8 Apr 2009 17:50:57 +0000 Subject: * Make it possible to store creator strings in user inventory items as well as UUIDs * All existing functionality should be unaffected. * Database schemas have not been changed. --- .../ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory') diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index 95e3d71..f0d9946 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs @@ -1293,7 +1293,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory rdata.writer.WriteAttributeString("uuid", String.Empty, i.ID.ToString()); rdata.writer.WriteAttributeString("folder", String.Empty, i.Folder.ToString()); rdata.writer.WriteAttributeString("owner", String.Empty, i.Owner.ToString()); - rdata.writer.WriteAttributeString("creator", String.Empty, i.Creator.ToString()); + rdata.writer.WriteAttributeString("creator", String.Empty, i.CreatorId); rdata.writer.WriteAttributeString("creationdate", String.Empty, i.CreationDate.ToString()); rdata.writer.WriteAttributeString("invtype", String.Empty, i.InvType.ToString()); rdata.writer.WriteAttributeString("assettype", String.Empty, i.AssetType.ToString()); @@ -1392,7 +1392,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory || newf.Folder != oldf.Folder || newf.Description != oldf.Description || newf.Owner != oldf.Owner - || newf.Creator != oldf.Creator + || newf.CreatorId != oldf.CreatorId || newf.AssetID != oldf.AssetID || newf.GroupID != oldf.GroupID || newf.GroupOwned != oldf.GroupOwned @@ -1676,7 +1676,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory result.ID = UUID.Zero; result.Folder = UUID.Zero; result.Owner = ic.UserID; - result.Creator = ic.UserID; + result.CreatorId = ic.UserID.ToString(); result.AssetID = UUID.Zero; result.GroupID = UUID.Zero; result.GroupOwned = false; @@ -1710,7 +1710,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory result.InvType = Int32.Parse(ic.xml.Value); break; case "creator": - result.Creator = new UUID(ic.xml.Value); + result.CreatorId = ic.xml.Value; break; case "assettype": result.AssetType = Int32.Parse(ic.xml.Value); -- cgit v1.1