diff options
author | MW | 2007-05-25 16:27:07 +0000 |
---|---|---|
committer | MW | 2007-05-25 16:27:07 +0000 |
commit | b2d588ed1c9068324333ec3c5ab86efe6a36216d (patch) | |
tree | 950442d2af673e1df34e85ca5b8265ddd6c99906 /OpenGridServices/OpenGrid.Framework.Data.DB4o | |
parent | Oops (diff) | |
download | opensim-SC_OLD-b2d588ed1c9068324333ec3c5ab86efe6a36216d.zip opensim-SC_OLD-b2d588ed1c9068324333ec3c5ab86efe6a36216d.tar.gz opensim-SC_OLD-b2d588ed1c9068324333ec3c5ab86efe6a36216d.tar.bz2 opensim-SC_OLD-b2d588ed1c9068324333ec3c5ab86efe6a36216d.tar.xz |
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)
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.DB4o')
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oManager.cs | 2 | ||||
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs | 5 |
2 files changed, 6 insertions, 1 deletions
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 | |||
81 | /// <param name="row">The profile to add</param> | 81 | /// <param name="row">The profile to add</param> |
82 | /// <returns>Successful?</returns> | 82 | /// <returns>Successful?</returns> |
83 | public bool AddRow(UserProfileData row) | 83 | public bool AddRow(UserProfileData row) |
84 | { | 84 | { |
85 | if (userProfiles.ContainsKey(row.UUID)) | 85 | if (userProfiles.ContainsKey(row.UUID)) |
86 | { | 86 | { |
87 | userProfiles[row.UUID] = row; | 87 | 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 | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | public void addNewUserProfile(UserProfileData user) | ||
70 | { | ||
71 | manager.AddRow(user); | ||
72 | } | ||
73 | |||
69 | public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount) | 74 | public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount) |
70 | { | 75 | { |
71 | return true; | 76 | return true; |