diff options
author | MW | 2009-05-30 12:51:28 +0000 |
---|---|---|
committer | MW | 2009-05-30 12:51:28 +0000 |
commit | 69817b4d6a08d3f9866796c50a0d0fb0d28ded77 (patch) | |
tree | 7e35f8ac4f54d9586a8c2d7a051a079487a66e5e /OpenSim/Grid/InventoryServer/Main.cs | |
parent | * Tweaks to /WHO listings. (diff) | |
download | opensim-SC-69817b4d6a08d3f9866796c50a0d0fb0d28ded77.zip opensim-SC-69817b4d6a08d3f9866796c50a0d0fb0d28ded77.tar.gz opensim-SC-69817b4d6a08d3f9866796c50a0d0fb0d28ded77.tar.bz2 opensim-SC-69817b4d6a08d3f9866796c50a0d0fb0d28ded77.tar.xz |
Added a AvatarCreationModule to the user server. This handles the "cloning" of a existing avatar's inventory to another avatar's inventory (the base method will also create the inventory for a new avatar if the avatar doesn't alreayd have any inventory).
The code also sets the target avatar as wearing whatever the template avatar was wearing (including attachments). The idea is to allow the use of this to give new avatars a more interesting avatar (and inventory set) than the current default.
I have include a console command that will clone the inventory from one existing user (template avatar) to another existing avatar (target avatar). The format of the command is : "clone avatar <templateAvatarFirstName> <templateAvatarLastName> <targetAvatarFirstName> <targetAvatarLastName>" (to use this console command on new accounts, the "create user" command will need to be used first)
While the code was designed for hooking up to a remote call from a web interface, I have left the hookup code out of this commit, as I believe most use cases will want to handle it differently.
Also added a "trusted handler" to the inventory server to allow the user server to create new folders in a user's inventory.
All this is in the old UGAIM servers so will need porting to the new servers.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/InventoryServer/Main.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs index 7560383..537661e 100644 --- a/OpenSim/Grid/InventoryServer/Main.cs +++ b/OpenSim/Grid/InventoryServer/Main.cs | |||
@@ -136,6 +136,10 @@ namespace OpenSim.Grid.InventoryServer | |||
136 | "POST", "/NewFolder/", m_inventoryService.AddFolder, m_inventoryService.CheckAuthSession)); | 136 | "POST", "/NewFolder/", m_inventoryService.AddFolder, m_inventoryService.CheckAuthSession)); |
137 | 137 | ||
138 | m_httpServer.AddStreamHandler( | 138 | m_httpServer.AddStreamHandler( |
139 | new RestDeserialiseTrustedHandler<InventoryFolderBase, bool>( | ||
140 | "POST", "/CreateFolder/", m_inventoryService.AddFolder, m_inventoryService.CheckTrustSource)); | ||
141 | |||
142 | m_httpServer.AddStreamHandler( | ||
139 | new RestDeserialiseSecureHandler<InventoryItemBase, bool>( | 143 | new RestDeserialiseSecureHandler<InventoryItemBase, bool>( |
140 | "POST", "/NewItem/", m_inventoryService.AddItem, m_inventoryService.CheckAuthSession)); | 144 | "POST", "/NewItem/", m_inventoryService.AddItem, m_inventoryService.CheckAuthSession)); |
141 | 145 | ||