diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | 68 |
1 files changed, 3 insertions, 65 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index f302696..833b64a 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -123,71 +123,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
123 | 123 | ||
124 | protected void SaveInvItem(InventoryItemBase inventoryItem, string path) | 124 | protected void SaveInvItem(InventoryItemBase inventoryItem, string path) |
125 | { | 125 | { |
126 | string filename = string.Format("{0}{1}_{2}.xml", path, inventoryItem.Name, inventoryItem.ID); | 126 | string filename = string.Format("{0}{1}_{2}.xml", path, inventoryItem.Name, inventoryItem.ID); |
127 | StringWriter sw = new StringWriter(); | 127 | string serialization = UserInventoryItemSerializer.Serialize(inventoryItem); |
128 | XmlTextWriter writer = new XmlTextWriter(sw); | 128 | m_archive.WriteFile(filename, serialization); |
129 | writer.Formatting = Formatting.Indented; | ||
130 | |||
131 | writer.WriteStartElement("InventoryItem"); | ||
132 | |||
133 | writer.WriteStartElement("Name"); | ||
134 | writer.WriteString(inventoryItem.Name); | ||
135 | writer.WriteEndElement(); | ||
136 | writer.WriteStartElement("ID"); | ||
137 | writer.WriteString(inventoryItem.ID.ToString()); | ||
138 | writer.WriteEndElement(); | ||
139 | writer.WriteStartElement("InvType"); | ||
140 | writer.WriteString(inventoryItem.InvType.ToString()); | ||
141 | writer.WriteEndElement(); | ||
142 | writer.WriteStartElement("CreatorUUID"); | ||
143 | writer.WriteString(inventoryItem.CreatorId); | ||
144 | writer.WriteEndElement(); | ||
145 | writer.WriteStartElement("CreationDate"); | ||
146 | writer.WriteString(inventoryItem.CreationDate.ToString()); | ||
147 | writer.WriteEndElement(); | ||
148 | writer.WriteStartElement("Owner"); | ||
149 | writer.WriteString(inventoryItem.Owner.ToString()); | ||
150 | writer.WriteEndElement(); | ||
151 | writer.WriteStartElement("Description"); | ||
152 | writer.WriteString(inventoryItem.Description); | ||
153 | writer.WriteEndElement(); | ||
154 | writer.WriteStartElement("AssetType"); | ||
155 | writer.WriteString(inventoryItem.AssetType.ToString()); | ||
156 | writer.WriteEndElement(); | ||
157 | writer.WriteStartElement("AssetID"); | ||
158 | writer.WriteString(inventoryItem.AssetID.ToString()); | ||
159 | writer.WriteEndElement(); | ||
160 | writer.WriteStartElement("SaleType"); | ||
161 | writer.WriteString(inventoryItem.SaleType.ToString()); | ||
162 | writer.WriteEndElement(); | ||
163 | writer.WriteStartElement("SalePrice"); | ||
164 | writer.WriteString(inventoryItem.SalePrice.ToString()); | ||
165 | writer.WriteEndElement(); | ||
166 | writer.WriteStartElement("BasePermissions"); | ||
167 | writer.WriteString(inventoryItem.BasePermissions.ToString()); | ||
168 | writer.WriteEndElement(); | ||
169 | writer.WriteStartElement("CurrentPermissions"); | ||
170 | writer.WriteString(inventoryItem.CurrentPermissions.ToString()); | ||
171 | writer.WriteEndElement(); | ||
172 | writer.WriteStartElement("EveryOnePermssions"); | ||
173 | writer.WriteString(inventoryItem.EveryOnePermissions.ToString()); | ||
174 | writer.WriteEndElement(); | ||
175 | writer.WriteStartElement("NextPermissions"); | ||
176 | writer.WriteString(inventoryItem.NextPermissions.ToString()); | ||
177 | writer.WriteEndElement(); | ||
178 | writer.WriteStartElement("Flags"); | ||
179 | writer.WriteString(inventoryItem.Flags.ToString()); | ||
180 | writer.WriteEndElement(); | ||
181 | writer.WriteStartElement("GroupID"); | ||
182 | writer.WriteString(inventoryItem.GroupID.ToString()); | ||
183 | writer.WriteEndElement(); | ||
184 | writer.WriteStartElement("GroupOwned"); | ||
185 | writer.WriteString(inventoryItem.GroupOwned.ToString()); | ||
186 | writer.WriteEndElement(); | ||
187 | |||
188 | writer.WriteEndElement(); | ||
189 | |||
190 | m_archive.WriteFile(filename, sw.ToString()); | ||
191 | 129 | ||
192 | UUID creatorId = inventoryItem.CreatorIdAsUuid; | 130 | UUID creatorId = inventoryItem.CreatorIdAsUuid; |
193 | 131 | ||