Applied makomk 's patch from issue #219.

afrisby
MW 2007-07-23 17:22:23 +00:00
parent 3abdec8d17
commit f8c1366cbf
1 changed files with 7 additions and 9 deletions

View File

@ -17,9 +17,7 @@ namespace OpenSim.Framework.UserManagement
private Hashtable loginFlagsHash; private Hashtable loginFlagsHash;
private Hashtable globalTexturesHash; private Hashtable globalTexturesHash;
private Hashtable loginError; private Hashtable loginError;
private Hashtable eventCategoriesHash;
private Hashtable uiConfigHash; private Hashtable uiConfigHash;
private Hashtable classifiedCategoriesHash;
private ArrayList loginFlags; private ArrayList loginFlags;
private ArrayList globalTextures; private ArrayList globalTextures;
@ -82,8 +80,6 @@ namespace OpenSim.Framework.UserManagement
this.classifiedCategories = new ArrayList(); this.classifiedCategories = new ArrayList();
this.loginError = new Hashtable(); this.loginError = new Hashtable();
this.eventCategoriesHash = new Hashtable();
this.classifiedCategoriesHash = new Hashtable();
this.uiConfigHash = new Hashtable(); this.uiConfigHash = new Hashtable();
this.defaultXmlRpcResponse = new XmlRpcResponse(); this.defaultXmlRpcResponse = new XmlRpcResponse();
@ -215,7 +211,7 @@ namespace OpenSim.Framework.UserManagement
this.globalTexturesHash["cloud_texture_id"] = this.CloudTexture; this.globalTexturesHash["cloud_texture_id"] = this.CloudTexture;
this.globalTexturesHash["moon_texture_id"] = this.MoonTexture; this.globalTexturesHash["moon_texture_id"] = this.MoonTexture;
this.globalTextures.Add(this.globalTexturesHash); this.globalTextures.Add(this.globalTexturesHash);
this.eventCategories.Add(this.eventCategoriesHash); // this.eventCategories.Add(this.eventCategoriesHash);
this.AddToUIConfig("allow_first_life", this.allowFirstLife); this.AddToUIConfig("allow_first_life", this.allowFirstLife);
this.uiConfig.Add(this.uiConfigHash); this.uiConfig.Add(this.uiConfigHash);
@ -273,7 +269,8 @@ namespace OpenSim.Framework.UserManagement
public void SetEventCategories(string category, string value) public void SetEventCategories(string category, string value)
{ {
this.eventCategoriesHash[category] = value; // this.eventCategoriesHash[category] = value;
//TODO
} // SetEventCategories } // SetEventCategories
public void AddToUIConfig(string itemName, string item) public void AddToUIConfig(string itemName, string item)
@ -283,9 +280,10 @@ namespace OpenSim.Framework.UserManagement
public void AddClassifiedCategory(Int32 ID, string categoryName) public void AddClassifiedCategory(Int32 ID, string categoryName)
{ {
this.classifiedCategoriesHash["category_name"] = categoryName; Hashtable hash = new Hashtable();
this.classifiedCategoriesHash["category_id"] = ID; hash["category_name"] = categoryName;
this.classifiedCategories.Add(this.classifiedCategoriesHash); hash["category_id"] = ID;
this.classifiedCategories.Add(hash);
// this.classifiedCategoriesHash.Clear(); // this.classifiedCategoriesHash.Clear();
} // SetClassifiedCategory } // SetClassifiedCategory