From b2d588ed1c9068324333ec3c5ab86efe6a36216d Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 25 May 2007 16:27:07 +0000 Subject: Possible my last ever OpenSim/OGS contribution (if I continue to feel like this): Re-added a CLI "create user" command to the userserver, only currently works if using DB4o as the database provider. Added Xml config files to both the UserServer and Gridserver (UserServerConfig.xml and GridServerConfig.xml), so that the database provider can be set in it. (both currently default to DB4o , so maybe Adam will want to change it back to defaulting to MySQL) --- OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs | 2 +- OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenGridServices/OpenGrid.Framework.Data.DB4o') diff --git a/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs b/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs index aaa6e91..b30f889 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs @@ -81,7 +81,7 @@ namespace OpenGrid.Framework.Data.DB4o /// The profile to add /// Successful? public bool AddRow(UserProfileData row) - { + { if (userProfiles.ContainsKey(row.UUID)) { userProfiles[row.UUID] = row; diff --git a/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs b/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs index 7dd4c51..1e8273d 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs @@ -66,6 +66,11 @@ namespace OpenGrid.Framework.Data.DB4o } } + public void addNewUserProfile(UserProfileData user) + { + manager.AddRow(user); + } + public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount) { return true; -- cgit v1.1