2005-11-25 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Sat, 26 Nov 2005 03:23:26 +0000 (03:23 -0000)
committerChris Toshok <toshok@novell.com>
Sat, 26 Nov 2005 03:23:26 +0000 (03:23 -0000)
* AuthorizationRuleCollection.cs (CreateNewElement): remove
MonoTODO.

* CompilationSection.cs (GetRuntimeObject): add comment to TODO.

* ProfileGroupSettings.cs: reformat some things.

* FormsAuthenticationUser.cs (Name): remove MonoTODO.

* WebPartsSection.cs (GetRuntimeObject): change TODO comment.

* ProfilePropertySettings.cs: add internal argument-less ctor.

* IdentitySection.cs (GetRuntimeObject): return this.

* ProfilePropertySettingsCollection.cs: implement much of the
TODO's.

* WebControlsSection.cs (GetRuntimeObject): implement.

* SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
implement.
(GetKey): implement.

svn path=/trunk/mcs/; revision=53501

mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRuleCollection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
mcs/class/System.Web/System.Web.Configuration_2.0/CompilationSection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/FormsAuthenticationUser.cs
mcs/class/System.Web/System.Web.Configuration_2.0/IdentitySection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/ProfileGroupSettings.cs
mcs/class/System.Web/System.Web.Configuration_2.0/ProfilePropertySettings.cs
mcs/class/System.Web/System.Web.Configuration_2.0/ProfilePropertySettingsCollection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/SqlCacheDependencyDatabaseCollection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/WebControlsSection.cs
mcs/class/System.Web/System.Web.Configuration_2.0/WebPartsSection.cs

index 0602b2e5c62e0eb31e3e349ba781baeda29b8927..ce16bcb2a4eb3eb9191bd4777ecb4c0c72ea2693 100644 (file)
@@ -60,7 +60,6 @@ namespace System.Web.Configuration {
                        return new AuthorizationRule (elementName == "allow" ? AuthorizationRuleAction.Allow : AuthorizationRuleAction.Deny);
                }
 
-               [MonoTODO]
                protected override ConfigurationElement CreateNewElement ()
                {
                        return new AuthorizationRule (AuthorizationRuleAction.Allow);
index e68d6c259636f811ba718267b3fa317f47deb31e..812f4dc447e88bc27db5bb6c9212baebacdbd49d 100644 (file)
@@ -1,3 +1,29 @@
+2005-11-25  Chris Toshok  <toshok@ximian.com>
+
+       * AuthorizationRuleCollection.cs (CreateNewElement): remove
+       MonoTODO.
+
+       * CompilationSection.cs (GetRuntimeObject): add comment to TODO.
+
+       * ProfileGroupSettings.cs: reformat some things.
+
+       * FormsAuthenticationUser.cs (Name): remove MonoTODO.
+
+       * WebPartsSection.cs (GetRuntimeObject): change TODO comment.
+
+       * ProfilePropertySettings.cs: add internal argument-less ctor.
+
+       * IdentitySection.cs (GetRuntimeObject): return this.
+
+       * ProfilePropertySettingsCollection.cs: implement much of the
+       TODO's.
+       
+       * WebControlsSection.cs (GetRuntimeObject): implement.
+
+       * SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
+       implement.
+       (GetKey): implement.
+
 2005-11-24  Chris Toshok  <toshok@ximian.com>
 
        * AssemblyInfo.cs: move this here from System.Web.Configuration,
index 3eb13aa63093d63b45683965a1e765e7a4f6364e..156c6c259af330d604c379ddbe093b882cf6e6e7 100644 (file)
@@ -119,7 +119,7 @@ namespace System.Web.Configuration
                        base.PostDeserialize ();
                }
 
-               [MonoTODO]
+               [MonoTODO ("why override this?")]
                protected override object GetRuntimeObject ()
                {
                        return this;
index 7446d6f51d9dc42516cedd27d5b9b5bdfc2e318a..a66825efb088ac1fe7c15275ac8da50abe607631 100644 (file)
@@ -60,7 +60,6 @@ namespace System.Web.Configuration
                        this.Password = password;
                }
 
-               [MonoTODO ("enable type converter")]
                [StringValidator]
                [TypeConverter (typeof (LowerCaseStringConverter))]
                [ConfigurationProperty ("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
index bac0ada9b6580cd8d56567a4414d998bb2fe72e5..6ae34f5acf246833772c2915d620ba42aeb86e0a 100644 (file)
@@ -54,10 +54,10 @@ namespace System.Web.Configuration {
                        properties.Add (userNameProp);
                }
 
-               [MonoTODO]
+               [MonoTODO ("why override this?")]
                protected override object GetRuntimeObject ()
                {
-                       throw new NotImplementedException ();
+                       return this;
                }
 
                [MonoTODO]
index e3f22b1ce298fd5b41043d77f345b59a1ffc332a..a67cd29ca1cabb653471c6b5849107cc00ed4836 100644 (file)
@@ -78,25 +78,17 @@ namespace System.Web.Configuration
 
                [ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
                public string Name {
-                       get {
-                               return (string)base [nameProp];
-                       }
-                       internal set{
-                               base [nameProp] = value;
-                       }
+                       get { return (string)base [nameProp]; }
+                       internal set{ base [nameProp] = value; }
                }
 
                [ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
                public ProfilePropertySettingsCollection PropertySettings {
-                       get {
-                               return (ProfilePropertySettingsCollection) base [propertySettingsProp];
-                       }
+                       get { return (ProfilePropertySettingsCollection) base [propertySettingsProp]; }
                }
 
                protected override ConfigurationPropertyCollection Properties {
-                       get {
-                               return properties;
-                       }
+                       get { return properties; }
                }
        }
 }
index 971194ae82aea4a7f99bb0f0e406b7be61e6f60c..aa001b47f40b0c5607778e3d9891385eea6bdbd6 100644 (file)
@@ -77,6 +77,10 @@ namespace System.Web.Configuration
                        properties.Add (typeProp);
                }
 
+               internal ProfilePropertySettings ()
+               {
+               }
+
                public ProfilePropertySettings (string name)
                {
                        this.Name = name;
index 85096a5f70632b6b4c7cff7f2679b66dfa661db0..86547c7988a27a9c652a961546f2527e4f223e51 100644 (file)
@@ -50,46 +50,43 @@ namespace System.Web.Configuration
                {
                }
 
-               [MonoTODO]
                public void Add (ProfilePropertySettings propertySettings)
                {
-                       throw new NotImplementedException ();
+                       BaseAdd (propertySettings);
                }
 
-               [MonoTODO]
                public void Clear ()
                {
-                       throw new NotImplementedException ();
+                       BaseClear ();
                }
 
-               [MonoTODO]
                protected override ConfigurationElement CreateNewElement ()
                {
-                       throw new NotImplementedException ();
+                       return new ProfilePropertySettings ();
                }
 
-               [MonoTODO]
                public ProfilePropertySettings Get (int index)
                {
-                       throw new NotImplementedException ();
+                       return (ProfilePropertySettings) BaseGet (index);
                }
 
-               [MonoTODO]
                public ProfilePropertySettings Get (string name)
                {
-                       throw new NotImplementedException ();
+                       return (ProfilePropertySettings) BaseGet (name);
                }
 
-               [MonoTODO]
                protected override object GetElementKey (ConfigurationElement element)
                {
-                       throw new NotImplementedException ();
+                       return ((ProfilePropertySettings)element).Name;
                }
 
-               [MonoTODO]
                public string GetKey (int index)
                {
-                       throw new NotImplementedException ();
+                       ProfilePropertySettings s = Get (index);
+                       if (s == null)
+                               return null;
+
+                       return s.Name;
                }
 
                [MonoTODO]
@@ -104,16 +101,14 @@ namespace System.Web.Configuration
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
                public void Remove (string name)
                {
-                       throw new NotImplementedException ();
+                       BaseRemove (name);
                }
 
-               [MonoTODO]
                public void RemoveAt (int index)
                {
-                       throw new NotImplementedException ();
+                       BaseRemoveAt (index);
                }
 
                [MonoTODO]
@@ -141,22 +136,16 @@ namespace System.Web.Configuration
                }
 
                public ProfilePropertySettings this[int index] {
-                       get { return (ProfilePropertySettings) BaseGet (index); }
-                       set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
+                       get { return Get (index); }
+                       set { if (Get (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
                }
 
-               [MonoTODO]
                public new ProfilePropertySettings this[string name] {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+                       get { return Get (name); }                              
                }
 
-               [MonoTODO]
                protected override bool ThrowOnDuplicate {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+                       get { return false; }
                }
 
        }
index a2f20eaa277c8bf625d7531d6b549f66c8af8d4d..1d15664f5412e76a50b36abb67de661eea3239ac 100644 (file)
@@ -63,16 +63,17 @@ namespace System.Web.Configuration {
                        return new SqlCacheDependencyDatabase ();
                }
 
-               [MonoTODO]
                protected override object GetElementKey (ConfigurationElement element)
                {
-                       throw new NotImplementedException ();
+                       return ((SqlCacheDependencyDatabase)element).Name;
                }
 
-               [MonoTODO]
                public string GetKey (int index)
                {
-                       throw new NotImplementedException ();
+                       SqlCacheDependencyDatabase db = Get (index);
+                       if (db == null)
+                               return null;
+                       return db.Name;
                }
 
                public void Remove (string name)
index 710daad5dea252b0fe447f79a38b46a660ad53a3..250a0225a0ba904fb85d48670fb234d8f86882df 100644 (file)
@@ -29,6 +29,7 @@
 //
 
 using System;
+using System.Collections;
 using System.ComponentModel;
 using System.Configuration;
 
@@ -52,10 +53,13 @@ namespace System.Web.Configuration {
                        properties.Add (clientScriptsLocationProp);
                }
 
-               [MonoTODO]
                protected override object GetRuntimeObject ()
                {
-                       return this;
+                       Hashtable ht = new Hashtable ();
+
+                       ht.Add ("clientScriptsLocation", ClientScriptsLocation);
+
+                       return ht;
                }
 
                [StringValidator (MinLength = 1)]
index 8ade23abc15942030f4aa41f1e95fc6bbe5c2036..32ac5cb52f7a21a2c1b914aa5aff5bffdd47bbc3 100644 (file)
@@ -58,7 +58,7 @@ namespace System.Web.Configuration {
                        properties.Add (transformersProp);
                }
 
-               [MonoTODO]
+               [MonoTODO ("why override this?")]
                protected override object GetRuntimeObject ()
                {
                        return this;